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
- (implicit)0 zero page, 518 bytes
| Address | Bytes | Section | Module | Kind | Phases | Waits |
|---|---|---|---|---|---|---|
| $0200–$02FF | 256 | osVars | os | section | 0 | |
| $0300–$03FF | 256 | buffer | program | section | 0 | |
| $0400–$0405 | 6 | entry | program | proc | 0 |