kept

A program of Roots.

main.ngp

target { region $0080 .. $00FF ram   region $0200 .. $BFFF ram }
modules { "os.asm"  "program.asm" }
container raw

os.asm

; The machine's OS keeps its variables in page two, and reads and writes them
; on every interrupt. Nothing in this program reaches them, so `root` says that
; something outside the program does.
.section absolute at $0200, root
osVars
        .res $100
.ends

program.asm

; A buffer of the program's own, placed wherever the solver finds room, and the
; code that uses it.
.section
buffer
        .res $100
.ends

.proc entry
        lda #0
        sta buffer
        rts
.endp

Memory map

  1. (implicit)0 zero page, 518 bytes
AddressBytesSectionModuleKindPhasesWaits
$0200–$02FF256osVarsossection0
$0300–$03FF256bufferprogramsection0
$0400–$04056entryprogramproc0