Mercurial > repos > blastem
changeset 507:cc6030bd04c6
Add 3 wait states to Z80 access to bank area since that seems to be roughly the average in normal usage
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 28 Jan 2014 08:36:06 -0800 |
parents | a3b48a57e847 |
children | b976c6d6e5fb |
files | zruntime.S |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/zruntime.S Mon Jan 27 22:12:22 2014 -0800 +++ b/zruntime.S Tue Jan 28 08:36:06 2014 -0800 @@ -107,6 +107,8 @@ 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 @@ 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: