mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -04:00
fast mode timing changed (again...)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@271 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
c77ca79e89
commit
9a8ffeeeea
4 changed files with 29 additions and 19 deletions
|
@ -72,17 +72,17 @@ static
|
|||
void z80WriteBusReq(u32 d)
|
||||
{
|
||||
d&=1; d^=1;
|
||||
if (Pico.m.scanline != -1)
|
||||
//if (Pico.m.scanline != -1)
|
||||
{
|
||||
if(!d) {
|
||||
// this is for a nasty situation where Z80 was enabled and disabled in the same 68k timeslice (Golden Axe III)
|
||||
if (Pico.m.z80Run) {
|
||||
int lineCycles;
|
||||
z80stopCycle = SekCyclesDone();
|
||||
if (Pico.m.z80Run&2)
|
||||
if ((Pico.m.z80Run&2) && Pico.m.scanline != -1)
|
||||
lineCycles=(488-SekCyclesLeft)&0x1ff;
|
||||
else lineCycles=z80stopCycle-z80startCycle; // z80 was started at current line
|
||||
if (lineCycles > 0 && lineCycles <= 488) {
|
||||
if (lineCycles > 0) { // && lineCycles <= 488) {
|
||||
//dprintf("zrun: %i/%i cycles", lineCycles, (lineCycles>>1)-(lineCycles>>5));
|
||||
lineCycles=(lineCycles>>1)-(lineCycles>>5);
|
||||
z80_run(lineCycles);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue