Skip to content

Commit 7593403

Browse files
committed
Move region code
1 parent 7230812 commit 7593403

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/io.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ MMC5_CHR_BANK1 := $5127
6262

6363
.macro RESET_MMC1
6464
.if INES_MAPPER = 1
65-
inc $8000 ; initRam
65+
inc $8000 ; checkRegion
6666
.endif
6767
.endmacro

src/main.asm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
.segment "PRG_chunk1": absolute
1717

18+
; region code at start of page to keep cycle count consistent
19+
.include "util/check_region.asm"
20+
1821
initRam:
1922

2023
.include "boot.asm"
@@ -46,7 +49,6 @@ mainLoop:
4649
.include "highscores/entry_screen.asm"
4750

4851
.include "util/core.asm"
49-
.include "util/check_region.asm"
5052
.include "util/bytesprite.asm"
5153
.include "util/strings.asm"
5254
.include "util/math.asm"

0 commit comments

Comments
 (0)