Skip to content

Commit 9a45a52

Browse files
committed
feat: add 6809 assembly
1 parent 94924d8 commit 9a45a52

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

solutions/punishment_asm-6809.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
; Targeting CoCo via lwasm
2+
org $2a00
3+
4+
outdev = $6f
5+
chrout = $a282
6+
cls = $a928
7+
8+
start bra main
9+
10+
msg .str "I WILL NOT THROW PAPER AIRPLANES IN CLASS."
11+
.db $0d,$00
12+
olds rmb 2
13+
stk rmw 12
14+
15+
main sts olds
16+
lds #24+stk
17+
jsr cls
18+
19+
clr outdev ; 0 means write to screen
20+
ldx #500
21+
outer ldy #msg
22+
inner lda ,y+
23+
beq idone
24+
jsr chrout
25+
bra inner
26+
idone leax -1,x
27+
bne outer
28+
29+
lds olds
30+
rts
31+
end start

0 commit comments

Comments
 (0)