summaryrefslogtreecommitdiff
path: root/opcodes.asm
diff options
context:
space:
mode:
authorAstrid Smith2010-09-13 22:15:32 -0700
committerAstrid Smith2010-09-13 22:15:32 -0700
commitfc9f29ad2f22f23e2c5d2c742e3e198ab73f315e (patch)
treeb273bc1ecb3d112c5c05e4a201ca98d6c636ef2a /opcodes.asm
parent482038650c4be2aa72eaebbb8b4d9885f7380d3f (diff)
Timing correction macro added (as yet nonfunctional)
Diffstat (limited to 'opcodes.asm')
-rw-r--r--opcodes.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/opcodes.asm b/opcodes.asm
index 0191f23..3239dd4 100644
--- a/opcodes.asm
+++ b/opcodes.asm
@@ -185,6 +185,12 @@ DONE MACRO
bra done
ENDM
+ ;; Timing correction for more precise emulation
+ ;;
+ ;; \1 is number of tstates the current instruction should take
+ ;; \2 is number of cycles taken already
+TIME MACRO
+ ENDM
CNOP 0,32
@@ -192,6 +198,7 @@ emu_plain_op: ; Size(bytes) Time(cycles)
START
emu_op_00: ; S0 T0
;; NOP
+ TIME 4,0
DONE
START