
One of the hardest things about learning assembly language is picturing memory. Where does your program actually sit? How much room is left? Where does the video chip keep its tables, and what did that loop just write? The Assembly Lab now draws it for you. Press Memory Map under the Einstein's screen.

Each of the Einstein's three stores gets one tall bar. Every part is named beside the point where it starts, with its address and its size, and every bar is to scale, so big things look big and small things look small.
Press Run in Steps and step through your program, and the map updates every time it stops. Memory your program writes turns orange at its real address. Memory it sets to zero turns blue, so you can watch a buffer fill up and then clear. The stack gets its own label showing how deep it is, which goes up with every PUSH and CALL and down with every POP and RET.

The stack label also shows how much room is left. On the TC-01, MOS keeps code of its own in memory just below the stack, and the label turns red when the stack gets close to it. Push into that code and the machine restarts, so it is worth keeping an eye on.
Video memory works differently from main memory. Each of the chip's tables owns its whole block, whether or not anything has been drawn in it yet, because the chip reads the whole table every frame to draw the screen. So the map shows each table pale for the space it owns, with a solid part for what it actually holds. The Show Set Aside Space switch turns that off, so only what the tables hold is coloured in.
It also shows something easy to miss. On a blank MOS screen, 214 of the 256 sprite patterns already hold characters, because MOS keeps its font in the same 2K as the sprite shapes: sprite pattern n is character n. Define a sprite shape under MOS and you are overwriting a letter.
Open the Assembly Lab, press Memory Map, and write something that fills it up.