From 066cbff4c7666437575569edc61631060929c158 Mon Sep 17 00:00:00 2001 From: Duncan Smith Date: Mon, 13 Sep 2010 22:15:32 -0700 Subject: Timing correction macro added (as yet nonfunctional) --- opcodes.asm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'opcodes.asm') 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 -- cgit v1.2.3