libmsx
C library for MSX
|
Read from status registers. More...
Functions | |
uint8_t | vdp_get_status (uint8_t reg) |
MSX Read from a VDP status register. | |
Read from status registers.
uint8_t vdp_get_status | ( | uint8_t | reg | ) |
MSX
Read from a VDP status register.
reg | VDP status register number.
|
reg != 0
, returns the value of the status register #reg
reg == 0
, returns the value of STATFL
instead of reading the status register #0 (S#0).STATFL
for other uses. Therefore, this function reads STATFL
instead of S#0 if reg == 0
.