diff options
Diffstat (limited to 'asm/misc.S')
-rw-r--r-- | asm/misc.S | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -50,3 +50,22 @@ _mcount: mflr %r4 b __mcount_stack_check #endif + +.global mambo_read +mambo_read: +#define SIM_READ_CONSOLE_CODE 60 + li %r3,SIM_READ_CONSOLE_CODE + .long 0x000eaeb0 + extsw %r3,%r3 + blr + +.global mambo_write +mambo_write: +#define SIM_WRITE_CONSOLE_CODE 0 + li %r6,0 + mr %r5,%r4 + mr %r4,%r3 + li %r3,SIM_WRITE_CONSOLE_CODE + .long 0x000eaeb0 + blr + |