Skip to content

Commit a1e85aa

Browse files
committed
Modify to fit new VERA memory map (R39)
1 parent db15bcc commit a1e85aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

acme-ex01.asm

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ main:
1010
stz newx
1111
stz newy
1212

13-
sec ; BANK 1
13+
clc ; BANK 0
1414
jsr vtui_set_bank
1515

1616
stz $9F20
@@ -24,7 +24,7 @@ main:
2424
dex
2525
bne -
2626

27-
clc ; BANK 0
27+
sec ; BANK 1
2828
jsr vtui_set_bank
2929

3030
lda xcord
@@ -35,7 +35,7 @@ main:
3535
sta r1l ; Width
3636
sta r2l ; Height
3737
lda #$80 ; Save to VRAM
38-
sec ; Bank 1
38+
clc ; Bank 0
3939
stz r0l ; ADDR $0000
4040
stz r0h
4141
jsr vtui_save_rect
@@ -102,7 +102,7 @@ move_logo:
102102
lda #1
103103
sta r0h
104104
lda #$80 ; Restore from VRAM
105-
sec ; Bank 1
105+
clc ; Bank 0
106106
jsr vtui_rest_rect
107107

108108
lda newx
@@ -116,7 +116,7 @@ move_logo:
116116
lda #1
117117
sta r0h
118118
lda #$80 ; Save to VRAM
119-
sec ; Bank 1
119+
clc ; Bank 0
120120
jsr vtui_save_rect
121121

122122
lda newx
@@ -127,7 +127,7 @@ move_logo:
127127
sta r1l ; Width
128128
sta r2l ; Height
129129
lda #$80 ; Restore from VRAM
130-
sec ; Bank 1
130+
clc ; Bank 0
131131
stz r0l ; ADDR $0000
132132
stz r0h
133133
jsr vtui_rest_rect

0 commit comments

Comments
 (0)