mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sms, improve cycle counting, fix vcounter for 224/240 lines
This commit is contained in:
parent
f9ea940fb5
commit
7eeb85beb6
2 changed files with 24 additions and 11 deletions
|
@ -199,7 +199,7 @@ extern struct DrZ80 drZ80;
|
|||
#define Z80_STATE_SIZE 0x60
|
||||
|
||||
#define z80_resetCycles() \
|
||||
Pico.t.z80c_cnt = Pico.t.z80c_aim = Pico.t.z80_scanline = 0
|
||||
Pico.t.z80c_cnt -= Pico.t.z80c_aim, Pico.t.z80c_aim = Pico.t.z80_scanline = 0
|
||||
|
||||
#define z80_cyclesDone() \
|
||||
(Pico.t.z80c_aim - z80_cyclesLeft)
|
||||
|
@ -437,6 +437,7 @@ struct PicoTiming
|
|||
|
||||
unsigned int z80c_cnt; // z80 cycles done (this frame)
|
||||
unsigned int z80c_aim;
|
||||
unsigned int z80c_line_start;
|
||||
int z80_scanline;
|
||||
|
||||
int timer_a_next_oflow, timer_a_step; // in z80 cycles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue