mirror of
https://github.com/Ed94/pikuma_ps1.git
synced 2026-08-05 23:28:47 +00:00
overkill sio cruft, not keeping.
This commit is contained in:
+6
-6
@@ -33,8 +33,6 @@ enum {
|
||||
#define pad0_(btn_id) (btn_id << Pad0)
|
||||
#define pad1_(btn_id) (btn_id << Pad1)
|
||||
|
||||
void pad_init(U4 mode) asm("PadInit");
|
||||
U4 pad_read(U4 id) asm("PadRead");
|
||||
|
||||
/* ============================================================
|
||||
* SIO0 raw controller polling surface (Phase 1 scaffolding)
|
||||
@@ -130,10 +128,12 @@ enum {
|
||||
R_PadState = R_T7 atom_reg, /* caller-pinned PadState* */
|
||||
R_PadStatus = R_T4 atom_reg, /* scratch for status reads */
|
||||
R_PadCountdown = R_T5 atom_reg, /* scratch for countdown budget */
|
||||
#define R_PadSioBase_Code R_T6_Code
|
||||
#define R_PadState_Code R_T7_Code
|
||||
#define R_PadStatus_Code R_T4_Code
|
||||
#define R_PadCountdown_Code R_T5_Code
|
||||
R_DiagPinScratch = R_T3 atom_reg, /* raw_sio_pad_poll_20260802 — diag scratch address */
|
||||
#define R_PadSioBase_Code R_T6_Code
|
||||
#define R_PadState_Code R_T7_Code
|
||||
#define R_PadStatus_Code R_T4_Code
|
||||
#define R_PadCountdown_Code R_T5_Code
|
||||
#define R_DiagPinScratch_Code R_T3_Code
|
||||
};
|
||||
|
||||
/* Address of SIO0 block in KSEG1 (the PS1-side uncached mirror) */
|
||||
|
||||
@@ -22,6 +22,7 @@ WORD_COUNT(call_reg, 1)
|
||||
WORD_COUNT(call_addr, 1)
|
||||
WORD_COUNT(branch_le_zero, 1)
|
||||
WORD_COUNT(branch_equal, 1)
|
||||
WORD_COUNT(branch_ne, 1)
|
||||
WORD_COUNT(add_ui, 1)
|
||||
WORD_COUNT(set_lt_u, 1)
|
||||
WORD_COUNT(set_lt_s, 1)
|
||||
@@ -29,7 +30,9 @@ WORD_COUNT(set_lt_si, 1)
|
||||
WORD_COUNT(set_lt_ui, 1)
|
||||
WORD_COUNT(load_word, 1)
|
||||
WORD_COUNT(load_half_u, 1)
|
||||
WORD_COUNT(load_byte_u, 1)
|
||||
WORD_COUNT(store_word, 1)
|
||||
WORD_COUNT(store_byte, 1)
|
||||
WORD_COUNT(add_ui_self, 1)
|
||||
WORD_COUNT(add_u_self, 1)
|
||||
WORD_COUNT(add_u, 1)
|
||||
|
||||
Reference in New Issue
Block a user