diff options
| author | Astrid Smith | 2010-09-13 22:15:32 -0700 |
|---|---|---|
| committer | Astrid Smith | 2010-09-13 22:15:32 -0700 |
| commit | fc9f29ad2f22f23e2c5d2c742e3e198ab73f315e (patch) | |
| tree | b273bc1ecb3d112c5c05e4a201ca98d6c636ef2a | |
| parent | 482038650c4be2aa72eaebbb8b4d9885f7380d3f (diff) | |
Timing correction macro added (as yet nonfunctional)
| -rw-r--r-- | opcodes.asm | 7 |
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 |
