0 Members and 1 Guest are viewing this topic.
Getkey:MOVA @($07,PC),R0 ;$A44B0000MOV $0A,R1Loop:DT R1BT/S $08 ;ExitMOV.B @(R0,R1),R2CMP/PL R2BF/S $FA ;LoopMOV R1,R4SHLL8 R4ADD R2,R3BRA $F6 ;LoopADD R4,R3Exit:RTSMOV.L R3,@-R15data.l $A44B0000
...what is great about the SH3 is that the keyboard is memory mapped. How that works is that there are 10 bytes representing the state of the keyboard starting at 0xA44B0000...
I don't know how I missed the capitalized text saying "RENESAS 730501" and "RENESAS 735501" in the OS.
Ah ok. How would it be if someone made a language like Axe? Would we be able to do stuff like Getkey(45) and the compiler would translate back to a machine code-compatible format?
:Getkey->A:if A= k(45):blah:if A= k(12):blah