Publish VCC Plus OSS source distribution for 3.6.2 build 60

This commit is contained in:
Brian Holman committed 2026-11-13 00:14:03 -07:00
commit c652a5276d
1192 files changed
+272368

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
; CHOICE.ASM -- Press 1 for E (Earth) or 2 for M (Mars).
POLCAT equ $a000 ; Keyboard polling vector. Returns a key in A.
CHROUT equ $a002 ; Character-output vector.
CR equ 13
org $3f00
start lda #'? ; Show that the program is waiting for a key.
jsr [CHROUT]
choose jsr [POLCAT] ; Check the keyboard without waiting for Enter.
cmpa #'1
beq earth ; A matching comparison sets the Z flag.
cmpa #'2
bne choose ; No key or an unexpected key: try again.
mars lda #'M
bra printit ; Skip the Earth path.
earth lda #'E
printit jsr [CHROUT] ; Both paths meet here with one letter in A.
lda #CR
jsr [CHROUT]
rts
end start