diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-01-28 08:36:06 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-01-28 08:36:06 -0800 |
commit | efcdc09b1c58be04a53fa84ea34981d4231c1a78 (patch) | |
tree | 58adbc374d430c8255f6c02cc822c60fb73528c2 /zruntime.S | |
parent | 21c31dc425d0c599aecffa5f3d0e7b9202d2d465 (diff) |
Add 3 wait states to Z80 access to bank area since that seems to be roughly the average in normal usage
Diffstat (limited to 'zruntime.S')
-rw-r--r-- | zruntime.S | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -107,6 +107,8 @@ z80_read_ram: mov (%r11, %r13), %r13b ret z80_read_bank: + /* approximation of wait states for 68K bus access */ + add $3, %ebp and $0x7FFF, %r13 cmp $0, %r12 je slow_bank_read @@ -158,6 +160,8 @@ not_code: ret z80_write_bank: slow_bank_write: + /* approximation of wait states for 68K bus access */ + add $3, %ebp /* TODO: Call into C to implement this */ ret z80_write_ym2612: |