4
extern MIPS_State *mstate;
7
mips_io_read_byte(UInt32 addr)
9
if (mstate->p_mach->io_read_byte)
10
return mstate->p_mach->io_read_byte(addr);
16
mips_io_read_halfword(UInt32 addr)
18
if (mstate->p_mach->io_read_halfword)
19
return mstate->p_mach->io_read_halfword(addr);
25
mips_io_read_word(UInt32 addr)
28
if (mstate->p_mach->io_read_word)
29
return mstate->p_mach->io_read_word(addr);
35
mips_io_read_doubleword(UInt32 addr)
41
mips_io_write_byte(UInt32 addr, UInt32 data)
44
if (mstate->p_mach->io_write_byte)
45
mstate->p_mach->io_write_byte(addr, data);
49
mips_io_write_halfword(UInt32 addr, UInt32 data)
52
if (mstate->p_mach->io_write_halfword)
53
mstate->p_mach->io_write_halfword(addr, data);
57
mips_io_write_word(UInt32 addr, UInt32 data)
60
if (mstate->p_mach->io_write_word)
61
mstate->p_mach->io_write_word(addr, data);
65
mips_io_write_doubleword(UInt32 addr, UInt32 data)