Dunjunz1: the game loader Memory Map
Addresses outside Dunjunz1: the game loader's own code that it uses at run time — zero-page
workspace, RAM buffers, and memory-mapped I/O. For the code
itself (&2000–&2168), 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.
The game's files
| Address | Name | Access | Description |
|---|---|---|---|
&08C0 |
dunjunz4_start |
Where Dunjunz4, the game's &08C0-&1FFF, loads. |
|
&0D00 |
load_core |
In Dunjunz4: loads Dunjunz5 to &2000, over this loader, and falls into game_entry (&0D31). |
|
&6E80 |
dunjunz3_start |
Where Dunjunz3, the game's &6E80-&7FFF, loads. |
Loader workspace
| Address | Name | Access | Description |
|---|---|---|---|
&2170 |
osfile_block |
The OSFILE control block that load_file passes to FILEV's routine, just past the end of the file: bytes 0-1 the filename's address, bytes 2-5 the load address. Byte 6, the exec address's low byte, is never set; whatever it holds, each file loads at the load address given here or, if the byte is not 0, at its own, which is the same. |
|
&2172 |
osfile_load_addr |
Bytes 2-5 of osfile_block: the load address. |
|
&2174 |
osfile_load_addr_high |
Bytes 4-5 of osfile_block: the load address's top half, 0. |
Screen memory
| Address | Name | Access | Description |
|---|---|---|---|
&3280 |
loading_screen |
Where Dunjunz2, the MODE 2 loading screen, loads. |
