*EXPAND: picture unpacker Memory Map
Addresses outside *EXPAND: picture unpacker's own code that it uses at run time — zero-page
workspace, RAM buffers, and memory-mapped I/O. For the code
itself (&2E00–&2FA6), 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 |
|---|---|---|---|
&0080 |
packed_ptrindex region &0080–&0081 |
The next packed byte to read, from the file's load address up to &7FFF; first, with &82-&83, the four bytes OSARGS 2 writes the file's length into. Saved and restored by expand. |
|
&0082 |
screen_ptrindex region &0082–&0083 |
The next screen byte to write, from &3000 up to &7FFF; reaching &8000 ends the unpacking. Saved and restored by expand. |
|
&0084 |
command_ptrindex region &0084–&0087 |
Four bytes OSARGS 1 fills with the address of the command line's tail; skip_separators then steps the low two bytes to the filename. Saved and restored by expand. |
EXPAND workspace
| Address | Name | Access | Description |
|---|---|---|---|
&0C00 |
osfile_blockindex region &0C00–&0C11 |
B | The 18-byte OSFILE block for loading the picture, built from osfile_block_template over whatever page &0C held, which expand saves on the stack and puts back. |
