diff options
| -rw-r--r-- | opcodes.asm | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/opcodes.asm b/opcodes.asm index 2ae5c49..9b550ea 100644 --- a/opcodes.asm +++ b/opcodes.asm @@ -105,6 +105,15 @@ START MACRO _align SET _align+$20 ENDM + ;; This is run at the end of every instruction routine. +DONE MACRO + clr.w d0 ; 4 cycles / 2 bytes + move.b (a4)+,d0 ; 8 cycles / 2 bytes + rol.w #5,d0 ;16 cycles / 2 bytes + jmp 0(a5,d0.w) ;14 cycles / 4 bytes + ;; overhead: 42 cycles /10 bytes + ENDM + ;; LOHI/HILO are hideously slow for instructions used often. ;; Interleave registers instead: ;; @@ -133,16 +142,6 @@ WORD MACRO ;; overhead: 52 cycles /14 bytes ENDM - - ;; This is run at the end of every instruction routine. -DONE MACRO - clr.w d0 ; 4 cycles / 2 bytes - move.b (a4)+,d0 ; 8 cycles / 2 bytes - rol.w #5,d0 ;16 cycles / 2 bytes - jmp 0(a5,d0.w) ;14 cycles / 4 bytes - ;; overhead: 42 cycles /10 bytes - ENDM - ;; == Special Opcode Macros ======================================== ;; Do an ADD \1,\2 |
