0 Members and 4 Guests are viewing this topic.
MOV.L R15,@-R16 ;Seems to operate similar to the Push instruction STS.L PR,@-R16 ;adress to return to after program is finised running might be stored hereADD $FC, R16MOV.L R4,@R16MOV.L @($07*4,PC),R4JSR @R3 ;delayed branch, execute next instruction then jump, stores PC in PR so it might work like a call.MOV R5,R15
Z80, there's no R16 and the registers are zero indexed Also, JSR is short for Jump to SubRoutine. It's essentially the same as Call in z80, in terms of functionality at least.
PR holds the return address (minus 4) after a subroutine is called. That instruction saves it to the stack so more subroutines can be called.
Nice! Should make it easier for people to learn SH3 assembly
I'm really not sure how popular asm coding for the Prizm will be. z80 asm is considered complex by many and that is probaly the easiest of all assembly languages. SH3 assembly will have even fewer users than z80. Once some libraries are written for the Prizm most programming will be done in either C or some version of Axe.
Quote from: z80man on January 17, 2011, 02:38:47 amI'm really not sure how popular asm coding for the Prizm will be. z80 asm is considered complex by many and that is probaly the easiest of all assembly languages. SH3 assembly will have even fewer users than z80. Once some libraries are written for the Prizm most programming will be done in either C or some version of Axe.But, for the few of us that know assembly pretty well in SH3, or have the ability to learn it we could write something like 83 asm in 28 days. I'm thinking Casio Prizm asm in 9001 days?