Dunjunz: title screen and loader Memory Map
Addresses outside Dunjunz: title screen and loader's own code that it uses at run time — zero-page
workspace, RAM buffers, and memory-mapped I/O. For the code
itself (&26C0–&2F5B), see the
disassembly listing.
Access:
R read, W write,
B indexing base — the address is named as
base,X/,Y, so the byte actually touched is
base + index and the literal byte at this address is
never itself accessed.
Zero page
| Address | Name | Access | Description |
|---|---|---|---|
&0070 |
plot_x |
R/W | Star position: screen byte column. |
&0071 |
plot_y |
R/W | Star position: pixel row. |
&0072 |
sprite_width |
R/W | Width of the frame being plotted, in screen bytes. |
&0073 |
sprite_height |
R/W | Height of the frame being plotted, in pixel rows. |
&0074 |
screen_ptr |
R/W | Screen address being written, low byte. |
&0075 |
screen_ptr_hi |
R/W | Screen address being written, high byte. |
&0076 |
row_start_ptr |
R/W | Screen address of the row being plotted, low byte. |
&0077 |
row_start_ptr_hi |
R/W | Screen address of the row being plotted, high byte. |
&0078 |
sprite_data_ptr |
R/W | Address of the next frame byte to plot, low byte. |
&0079 |
sprite_data_ptr_hi |
R/W | Address of the next frame byte to plot, high byte. |
&007A |
sprite_number |
R/W | Star frame to plot, 0-6. |
OS workspace
| Address | Name | Access | Description |
|---|---|---|---|
&00FA |
os_zp_fa |
MOS zero-page workspace, mixed into the choice of a star's place. |
|
&00FC |
os_irq_a |
The MOS's copy of A at the last interrupt, mixed into the choice of a star's place. |
|
&0287 |
os_break_interceptindex region &0287–&0289 |
W | MOS BREAK intercept: a JMP here is called during a reset. Dunjunz points it at the game's next-level intercept and arms it before running Coder. |
Game state
| Address | Name | Access | Description |
|---|---|---|---|
&08B0 |
hero_score_ten_thousands |
W/B | Each hero's score ten-thousands digit, as a small digit sprite; &69 for none. |
&08B4 |
hero_absent |
W/B | Non-zero for each hero switched off on the menu. |
&08BC |
levels_started |
W | Number of levels started, kept by Coder in page &08, which survives the reset between levels. |
&08BD |
level_digitsindex region &08BD–&08BE |
W | The level number as ASCII digits for the level's filename: one digit and a space, or two digits. |
MOS 1.20 internals
| Address | Name | Access | Description |
|---|---|---|---|
&C375 |
mos_row_offsetsindex region &C375–&C376 |
B | MOS 1.20's table of the offsets of the screen's character rows, high byte then low byte. |
