processor

A program of Instructions.

This program is not meant to build. What the tool says is the lesson.

NGA5107 `stz` is a `65sc02` instruction, and this target is a `6502` /Users/waldek/Desktop/NGA/tutorial/12-instructions/processor/clear.asm:10

main.ngp

target { region $0080 .. $00FF ram   region $2000 .. $BFFF ram }
modules { "clear.asm" }
container raw

clear.asm

.section
counter
        .res 1
.ends

; tag clear
; `stz` writes a zero without going through a register, and the 6502 has no
; such instruction.
.proc entry
        stz counter
        rts
.endp
; end clear