mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
sms: improve sr a bit
This commit is contained in:
parent
7669591e08
commit
1c25c32c11
2 changed files with 16 additions and 4 deletions
|
@ -31,9 +31,12 @@ static unsigned char vdp_data_read(void)
|
|||
|
||||
static unsigned char vdp_ctl_read(void)
|
||||
{
|
||||
unsigned char d = Pico.video.pending_ints << 7;
|
||||
Pico.video.pending = 0;
|
||||
Pico.video.pending_ints = 0;
|
||||
struct PicoVideo *pv = &Pico.video;
|
||||
unsigned char d;
|
||||
|
||||
d = pv->status | (pv->pending_ints << 7);
|
||||
pv->pending = pv->pending_ints = 0;
|
||||
pv->status = 0;
|
||||
|
||||
elprintf(EL_SR, "VDP sr: %02x", d);
|
||||
return d;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue