Fix typo and optimize

This commit is contained in:
jede
2019-07-07 22:02:48 +02:00
committed by greg-king5
parent 28eba8bff9
commit a0a6537bda
5 changed files with 21 additions and 22 deletions

View File

@@ -5,7 +5,7 @@
; void gotoxy (unsigned char x, unsigned char y);
;
.export gotoxy, _gotoxy, _update_adscr
.export gotoxy, _gotoxy, update_adscr
.import popa, CHARCOLOR_CHANGE, BGCOLOR_CHANGE
@@ -21,7 +21,7 @@ gotoxy: jsr popa ; Get Y
jsr popa
sta SCRX
jsr _update_adscr ; Update adress video ram position when SCRY et SCRX are modified
jsr update_adscr ; Update adress video ram position when SCRY et SCRX are modified
; Force to put again attribute when it moves on the screen
lda #$01
sta CHARCOLOR_CHANGE
@@ -30,7 +30,7 @@ gotoxy: jsr popa ; Get Y
.endproc
.proc _update_adscr
.proc update_adscr
lda #<SCREEN
sta ADSCRL
@@ -51,4 +51,4 @@ skip:
bne loop
out:
rts
.endproc
.endproc