conditional-name

A program of Conditionals and packs.

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

NGA0138 `.if` stands in no section; what has an address is written in a `.section` or a `.proc` /Users/waldek/Desktop/NGA/tutorial/10-conditionals/conditional-name/wait.asm:4

NGA0169 a constant definition cannot stand in a conditional branch, which holds instructions and data /Users/waldek/Desktop/NGA/tutorial/10-conditionals/conditional-name/wait.asm:5

main.ngp

; tag constants
constants {
  NTSC = 1
}
; end constants

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

wait.asm

; tag name
; The way every other assembler writes it, and the one thing a branch may not
; hold: whether `frames` exists at all would depend on the condition.
.if NTSC
frames = 60
.endif
; end name

.section
second
        .byte frames
.ends

.proc entry
        lda second
        rts
.endp