2016-01-28 07:26:52 +00:00
|
|
|
__MAIN = $1080
|
|
|
|
.include "dos33.inc"
|
|
|
|
.include "ca65.inc"
|
|
|
|
|
|
|
|
KEYBOARD = $C000
|
|
|
|
KEYSTROBE = $C010
|
|
|
|
TXTCLR = $C050 ; Mode Graphics
|
|
|
|
MIXCLR = $C052 ; Full screen
|
|
|
|
MIXSET = $C053 ; Split screen
|
|
|
|
PAGE1 = $C054
|
|
|
|
HIRES = $C057 ; Mode HGR
|
|
|
|
|
|
|
|
HgrLo = $F5
|
|
|
|
HgrHi = $F6
|
|
|
|
glyph = $FE
|
2016-01-28 08:14:53 +00:00
|
|
|
row = $FF
|
2016-01-28 07:26:52 +00:00
|
|
|
DrawChar = $310
|
|
|
|
HgrLoY = $3A0
|
|
|
|
HgrHiY = $3B8
|
|
|
|
|
2016-01-28 08:14:53 +00:00
|
|
|
START_ROW = 0
|
|
|
|
|
2016-01-28 07:26:52 +00:00
|
|
|
AsciiTable
|
2016-01-28 08:14:53 +00:00
|
|
|
LDY #(START_ROW-1) & $FF
|
|
|
|
STY row
|
2016-01-28 07:26:52 +00:00
|
|
|
|
|
|
|
LDA #0 ; glyph=0
|
|
|
|
STA glyph ; save which glyph to draw
|
|
|
|
|
2016-01-28 08:14:53 +00:00
|
|
|
BIT PAGE1 ; Page 1
|
|
|
|
BIT TXTCLR ; not text, but graphics
|
|
|
|
BIT MIXSET ; Split screen text/graphics
|
|
|
|
BIT HIRES ; HGR, no GR
|
|
|
|
_NextRow
|
|
|
|
INC row
|
|
|
|
LDY row
|
2016-01-28 07:26:52 +00:00
|
|
|
LDA HgrLoY,Y
|
|
|
|
STA HgrLo ; Screen Address Lo
|
|
|
|
LDA HgrHiY,Y
|
|
|
|
ORA #$20 ; HGR Page 1
|
|
|
|
STA HgrHi ; Screen Address Hi
|
|
|
|
|
|
|
|
LDY #00 ; Y = col
|
2016-01-28 08:14:53 +00:00
|
|
|
_NextCol
|
2016-01-28 07:26:52 +00:00
|
|
|
LDA glyph ; A = glyph
|
|
|
|
JSR DrawChar
|
|
|
|
INC glyph ; yes, ++glyph
|
|
|
|
LDA glyph ;
|
|
|
|
CMP #$20 ; done 16 chars?
|
2016-01-28 08:14:53 +00:00
|
|
|
BEQ _NextRow
|
2016-01-28 07:26:52 +00:00
|
|
|
CMP #$40
|
2016-01-28 08:14:53 +00:00
|
|
|
BEQ _NextRow
|
2016-01-28 07:26:52 +00:00
|
|
|
CMP #$60
|
2016-01-28 08:14:53 +00:00
|
|
|
BEQ _NextRow
|
2016-01-28 07:26:52 +00:00
|
|
|
CMP #$80
|
2016-01-28 08:14:53 +00:00
|
|
|
BNE _NextCol
|
|
|
|
_Done RTS ; Optimization: BEQ _NextRow
|
2016-01-28 07:26:52 +00:00
|
|
|
|
|
|
|
__END:
|
|
|
|
|