Your place is saved automatically on this browser.
A label such as again: is a symbol that the assembler resolves to an address. Labels can identify entry points, alternate paths, data or callable subroutines. By naming the destination, they make source easier to change: move a block of code, and the assembler recalculates addresses and offsets.
Use descriptive names for real routines. done is fine in a tiny example, but a larger editor might prefer palette_done, file_error or editor_main_loop so that the reader does not confuse several unrelated ‘done’ paths. In a later multi-module build, we will decide how symbols are exported and whether any labels are local to a module; do not assume Odin Dev.2k supports a particular local-label syntax before checking its own guide.
The three sorts of movement we have met
A JR or JP is not a substitute for CALL when you expect to return. That difference explains why the stack exists and why we must understand it before structuring larger code.
