Expand blocks per tileset from 128 to 256 (#2)

This commit is contained in:
xCrystal 2023-07-24 14:05:48 +02:00
parent 1d64befdb7
commit 74b8214272

View File

@ -147,12 +147,12 @@ LoadMetatiles::
ld d, h ld d, h
; Set hl to the address of the current metatile data ([wTilesetBlocksAddress] + (a) tiles). ; Set hl to the address of the current metatile data ([wTilesetBlocksAddress] + (a) tiles).
; BUG: LoadMetatiles wraps around past 128 blocks (see docs/bugs_and_glitches.md) ; BUG: LoadMetatiles wraps around past 128 blocks (see docs/bugs_and_glitches.md)
add a
ld l, a ld l, a
ld h, 0 ld h, 0
add hl, hl add hl, hl
add hl, hl add hl, hl
add hl, hl add hl, hl
add hl, hl
ld a, [wTilesetBlocksAddress] ld a, [wTilesetBlocksAddress]
add l add l
ld l, a ld l, a