Skip to content

Commit 6e47ed8

Browse files
committed
Correctly paging out ASIC registers
1 parent 4e119dd commit 6e47ed8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Config.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@
4545
DEFINE RESTORE_ROM_CONFIG #7F00 + %10001101
4646
ENDIF
4747

48-
DEFINE VERSION_STR '1.0'
48+
DEFINE VERSION_STR '1.01'
4949

5050

src/ROMAccess.asm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ ASIC_SPRITE_MEM EQU #4000
184184

185185
;; OUT: z - Not Plus
186186
@CanAccessPlusASIC:
187+
;; Page ASIC registers into #4000 bank
187188
ld bc, #7F00 + %10111000
188189
out (c), c
189190

@@ -192,7 +193,8 @@ ASIC_SPRITE_MEM EQU #4000
192193
ld a, (ASIC_SPRITE_MEM)
193194
cp a, #FF
194195

195-
ld bc, RESTORE_ROM_CONFIG
196+
;; Page out ASIC registers
197+
ld bc, #7F00 + %10100000
196198
out (c), c
197199
ret
198200

0 commit comments

Comments
 (0)