]> git.sur5r.net Git - cc65/commitdiff
Adapt to assembler coding conventions.
authorStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sun, 16 Nov 2014 20:57:59 +0000 (21:57 +0100)
committerStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sun, 16 Nov 2014 20:57:59 +0000 (21:57 +0100)
libsrc/c1p/clrscr.s

index f219a4550a2128c825a0006707df9615c2eaa188..5550d1d756fac38e65639f154c436fa22e81b7c4 100644 (file)
@@ -9,15 +9,17 @@
 ; This is self-modifying code!\r
 BANKS = VIDEORAMSIZE / $100\r
 \r
-_clrscr:       LDA #$20 ;' '\r
-               LDY #BANKS\r
-               LDX #$00\r
-STALOC:                STA SCRNBASE,X\r
-               INX\r
-               BNE STALOC\r
-               INC STALOC+2\r
-               DEY\r
-               BNE STALOC\r
-               LDA #>(SCRNBASE) ; load high byte\r
-               STA STALOC+2     ; restore base address\r
-               RTS\r
+_clrscr:\r
+        lda #$20 ;' '\r
+               ldy #BANKS\r
+               ldx #$00\r
+staloc:\r
+               sta SCRNBASE,X\r
+               inx\r
+               bne staloc\r
+               inc staloc+2\r
+               dey\r
+               bne staloc\r
+               lda #>(SCRNBASE) ; load high byte\r
+               sta staloc+2     ; restore base address\r
+               rts\r