2018-01-17 00:52:31 +00:00
|
|
|
rel
|
|
|
|
typ $B3
|
|
|
|
dsk main.l
|
2018-01-15 15:58:58 +00:00
|
|
|
|
2018-01-27 02:25:23 +00:00
|
|
|
; ensure 16-bit mode (unnecessary?)
|
2018-01-18 22:01:26 +00:00
|
|
|
clc
|
|
|
|
xce
|
2018-01-28 16:40:43 +00:00
|
|
|
rep #$20
|
2018-01-18 22:01:26 +00:00
|
|
|
|
2018-01-17 00:52:31 +00:00
|
|
|
phk
|
|
|
|
plb
|
2018-01-15 15:58:58 +00:00
|
|
|
|
2018-01-28 03:41:56 +00:00
|
|
|
; half bank for accumulator, you don't want to toggle them on then back off, right?
|
2018-01-15 15:58:58 +00:00
|
|
|
|
2018-01-28 03:41:56 +00:00
|
|
|
sep #$30
|
2018-01-18 22:01:26 +00:00
|
|
|
|
2018-01-27 02:25:23 +00:00
|
|
|
; toggle the softswitches; they don't take any values. some are only triggered
|
|
|
|
; by writes, $C054 can be triggered by a read
|
2018-01-28 03:41:56 +00:00
|
|
|
stal $00C000 ; disable 80 column store?
|
2018-01-18 22:01:26 +00:00
|
|
|
|
2018-01-28 03:41:56 +00:00
|
|
|
stal $00C00C ; disable 80 column hardware?!
|
|
|
|
stal $00C050 ; set standard apple ii gfx mode
|
|
|
|
stal $00C051 ; select text mode only. "only"?
|
|
|
|
ldal $00C054 ; select text page 1 (there are 2)
|
|
|
|
ldal $00C056 ; select "low res" graphics
|
2018-01-17 06:07:57 +00:00
|
|
|
|
2018-01-27 02:25:23 +00:00
|
|
|
; ok, we are done toggling switches, let's go make a string
|
2018-01-28 16:40:43 +00:00
|
|
|
rep #$20
|
2018-01-27 02:25:23 +00:00
|
|
|
|
2018-01-28 03:41:56 +00:00
|
|
|
ldx #2
|
|
|
|
:loopy nop
|
|
|
|
lda hithere,x
|
2018-01-28 16:40:43 +00:00
|
|
|
stal $000400,x
|
2018-01-28 03:41:56 +00:00
|
|
|
cpx hithere
|
|
|
|
inx
|
2018-01-27 02:25:23 +00:00
|
|
|
bcs outbrk
|
2018-01-28 03:41:56 +00:00
|
|
|
jmp :loopy
|
2018-01-27 02:25:23 +00:00
|
|
|
|
2018-01-28 03:41:56 +00:00
|
|
|
outbrk brk
|
2018-01-27 02:25:23 +00:00
|
|
|
|
2018-01-17 00:52:31 +00:00
|
|
|
; Important locations
|
|
|
|
SPEAKER equ $E0C030
|
|
|
|
PRODOS16 equ $E100A8
|
2018-01-15 15:58:58 +00:00
|
|
|
|
2018-01-17 00:52:31 +00:00
|
|
|
jsl PRODOS16
|
2018-01-15 15:58:58 +00:00
|
|
|
; This exit code is "device busy", why is it the only one
|
|
|
|
; that works?!
|
2018-01-17 00:52:31 +00:00
|
|
|
da $29
|
|
|
|
adrl QP
|
2018-01-15 15:58:58 +00:00
|
|
|
bcs ERROR
|
|
|
|
|
2018-01-17 00:52:31 +00:00
|
|
|
ERROR brk
|
2018-01-15 15:58:58 +00:00
|
|
|
|
|
|
|
QP adrl $0000
|
2018-01-17 00:52:31 +00:00
|
|
|
da $00
|
|
|
|
|
2018-01-28 16:40:43 +00:00
|
|
|
hithere strl "this was excruciating"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-01-17 00:52:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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