diff options
| author | Duncan Smith | 2010-06-21 13:11:42 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-06-21 13:11:42 -0700 |
| commit | c2d7f209a872d7fe0571c924b4386f45717f8408 (patch) | |
| tree | c0b0b36536f73d779d06a59311857a907b84f417 | |
| parent | 22257ee7157ea898483daf29ac8b3e94703d7098 (diff) | |
Moved DONE macro to a more sensible location
| -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 |
