18
Reads from VRAM are buffered. Every time the data port is read (regardless of the code
register) the contents of a buffer are returned. The VDP will then read a byte from VRAM
at the current address, and increment the address register. In this way data for the next
data port read is ready with no delay while the VDP reads VRAM. An additional quirk is
that writing to the data port will also load the buffer with the value written.
Example: Writing 11,12,13 to VRAM addresses 3,4,5:
Status flags
Reading the control port returns a byte containing status flags:
INT - Frame interrupt pending
This flag is set on the first line after the end of the active display period. It is cleared
when the control port is read. For more details, see the interrupts section.
OVR - Sprite overflow
This flag is set if there are more than eight sprites that are positioned on a single
scanline. It is cleared when the control port is read. For more information see the sprites
section.
COL - Sprite collision
This flag is set if an opaque pixel from any two sprites overlap. It is cleared when the
control port is read. For more information see the sprites section. The remaining bits are
not set by the VDP, and return garbage values for the 315-5124 and 315-5246.
OUT &H89,3:OUT &H89,&B01000000
OUT &H88,11:OUT &H88,12:OUT &H88,13
A07 A06 A05 A04 A03 A02 A01 A00 First byte written
0 1 A13 A12 A11 A10 A09 A08 Second byte written
MSB LSB
INT OVR COL --- --- --- --- ---
Содержание Franky
Страница 1: ...Instruction Manual ...