prodos-path/hello.cmd.s

22 lines
329 B
ArmAsm
Raw Normal View History

2019-01-07 19:36:25 -08:00
.include "apple2.inc"
CROUT := $FD8E
COUT := $FDED
.org $4000
2019-01-07 21:45:39 -08:00
jsr CROUT
2019-01-07 19:36:25 -08:00
ldx #0
2019-01-07 21:45:39 -08:00
: lda str,x
2019-01-07 19:36:25 -08:00
beq done
2019-01-07 21:45:39 -08:00
ora #$80
2019-01-07 19:36:25 -08:00
jsr COUT
2019-01-07 21:45:39 -08:00
inx
2019-01-07 19:36:25 -08:00
jmp :-
done: jsr CROUT
2019-01-08 22:55:06 -08:00
clc
2019-01-07 19:36:25 -08:00
rts
str: .byte "Hello, world!", 0