Adapt to assembler coding conventions.
This commit is contained in:
@@ -9,15 +9,17 @@
|
|||||||
; This is self-modifying code!
|
; This is self-modifying code!
|
||||||
BANKS = VIDEORAMSIZE / $100
|
BANKS = VIDEORAMSIZE / $100
|
||||||
|
|
||||||
_clrscr: LDA #$20 ;' '
|
_clrscr:
|
||||||
LDY #BANKS
|
lda #$20 ;' '
|
||||||
LDX #$00
|
ldy #BANKS
|
||||||
STALOC: STA SCRNBASE,X
|
ldx #$00
|
||||||
INX
|
staloc:
|
||||||
BNE STALOC
|
sta SCRNBASE,X
|
||||||
INC STALOC+2
|
inx
|
||||||
DEY
|
bne staloc
|
||||||
BNE STALOC
|
inc staloc+2
|
||||||
LDA #>(SCRNBASE) ; load high byte
|
dey
|
||||||
STA STALOC+2 ; restore base address
|
bne staloc
|
||||||
RTS
|
lda #>(SCRNBASE) ; load high byte
|
||||||
|
sta staloc+2 ; restore base address
|
||||||
|
rts
|
||||||
|
|||||||
Reference in New Issue
Block a user