docs: add more info about sets and for-in loop
This commit is contained in:
parent
573b28bd21
commit
796d8f8e5f
2 changed files with 57 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ Video memory uses a linear layout, with words using an address increment of one.
|
|||
The first word (horizontal pixel coordinates 0-3) is at address 0, the second (coordinates 4-7) at address 1 etc.
|
||||
The first line starts at address 0, the second at address 80 etc.
|
||||
|
||||
To access video memory, the corresponding video memory address must be written to a latch register, then pixel data can be read or written by the I/O register. Reading and writing uses separate latch registers (the "Read Adress" and "Write Address" registers. To read the same word and write it back, both addresses need to be set.
|
||||
To access video memory, the corresponding video memory address must be written to a latch register, then pixel data can be read or written by the I/O register. Reading and writing uses separate latch registers (the "Read Adress" and "Write Address" registers, _FB_RA_ and _FB_WA_). To read the same word and write it back, both addresses need to be set.
|
||||
Both registers have an auto-increment function. After reading the I/O register, the FB_RA register is ingremented by one. After writing to the I/O register, the FB_WA register is incremented by one.
|
||||
|
||||
## Palette Data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue