diff options
| author | Duncan Smith | 2010-09-13 22:15:32 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-09-13 22:15:32 -0700 |
| commit | 066cbff4c7666437575569edc61631060929c158 (patch) | |
| tree | c0ea5f523f18d7b5a05f16391b68fa50c0f86bfc /opcodes.asm | |
| parent | bd35260eeb1dadd966f67d9e737c02039ebb8da1 (diff) | |
Timing correction macro added (as yet nonfunctional)
Diffstat (limited to 'opcodes.asm')
| -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 |
