mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
36 lines
629 B
ArmAsm
36 lines
629 B
ArmAsm
|
|
.include "gamate.inc"
|
|
.include "extzp.inc"
|
|
|
|
.import plot
|
|
.export _clrscr
|
|
_clrscr:
|
|
ldy #$0
|
|
tya
|
|
rowloop:
|
|
sty LCD_X
|
|
|
|
sta LCD_Y
|
|
|
|
ldx #$0
|
|
colloop:
|
|
sta LCD_DATA
|
|
|
|
inx
|
|
bne colloop
|
|
|
|
iny
|
|
bne rowloop
|
|
|
|
; Go to the home position.
|
|
|
|
sta CURS_X
|
|
sta CURS_Y
|
|
jmp plot
|
|
|
|
;-------------------------------------------------------------------------------
|
|
; force the init constructor to be imported
|
|
|
|
.import initconio
|
|
conio_init = initconio
|