Skip to content

Commit 6ea3350

Browse files
committed
Modify to fit new VERA memory map (R39)
1 parent 686dbda commit 6ea3350

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ca65-ex01.asm

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ main:
1212
stz newx
1313
stz newy
1414

15-
sec ; BANK 1
15+
clc ; BANK 0
1616
jsr vtui_set_bank
1717

1818
stz $9F20 ; ADDR $0100
@@ -26,7 +26,7 @@ main:
2626
dex
2727
bne :-
2828

29-
clc ; BANK 0
29+
sec ; BANK 1
3030
jsr vtui_set_bank
3131

3232
lda xcord
@@ -39,7 +39,7 @@ main:
3939
stz r0l ; ADDR $0000
4040
stz r0h
4141
lda #$80 ; Save to VRAM
42-
sec ; Bank 1
42+
clc ; Bank 0
4343
jsr vtui_save_rect
4444

4545
lda #32 ; X
@@ -104,7 +104,7 @@ move_logo:
104104
lda #1
105105
sta r0h
106106
lda #$80 ; Restore from VRAM
107-
sec ; Bank 1
107+
clc ; Bank 0
108108
jsr vtui_rest_rect
109109

110110
lda newx
@@ -118,7 +118,7 @@ move_logo:
118118
lda #1
119119
sta r0h
120120
lda #$80 ; Save to VRAM
121-
sec ; Bank 1
121+
clc ; Bank 0
122122
jsr vtui_save_rect
123123

124124
lda newx
@@ -129,7 +129,7 @@ move_logo:
129129
sta r1l ; Width
130130
sta r2l ; Height
131131
lda #$80 ; Restore from VRAM
132-
sec ; Bank 1
132+
clc ; Bank 0
133133
stz r0l ; ADDR $0000
134134
stz r0h
135135
jsr vtui_rest_rect

0 commit comments

Comments
 (0)