*DUNJUNZ: title screen and loader Memory Map

← Dunjunz

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 (&2649–&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_intercept
index region &0287–&0289
W

MOS BREAK intercept: a JMP here is called during a reset. *DUNJUNZ sets its address but leaves it disabled.

*DUNJUNZ and Coder2

Address Name Access Description
&08B0 unread_digit_table W/B

In the game's Dunj3: four bytes set to &69 by title_start, which the game never reads.

&08B4 unread_hero_table W/B

In the game's Dunj3: four bytes set to 0 by title_start, which the game never reads.

&08BC unread_level_count W

In the game's Dunj3: a byte set to 0 by title_start, which the game never reads.

&08BD unread_level_digits
index region &08BD–&08BE
W

In the game's Dunj3: two bytes set to "0 " by title_start, which the game never reads.

Private RAM (HAZEL)

Address Name Access Description
&C675 row_offsets
index region &C675–&C676
B

In Table, which *DUNJUNZ loads first: the offsets of the screen's character rows, high byte then low byte, a copy of MOS 1.20's table at &C375.