Replace some hex constants

This commit is contained in:
Remy Oukaour
2018-01-09 18:08:40 -05:00
parent cc0fd6e12c
commit fbc353f206
4 changed files with 12 additions and 13 deletions

View File

@@ -367,9 +367,9 @@ ScrollTileUp: ; fc34f
ld d, [hl]
inc hl
ld e, [hl]
ld bc, $e
ld bc, TILE_WIDTH * 2 - 2
add hl, bc
ld a, 4
ld a, TILE_WIDTH / 2
.loop
ld c, [hl]
ld [hl], e
@@ -391,14 +391,14 @@ ScrollTileUp: ; fc34f
ScrollTileDown: ; fc36a
ld h, d
ld l, e
ld de, $e
ld de, TILE_WIDTH * 2 - 2
push hl
add hl, de
ld d, [hl]
inc hl
ld e, [hl]
pop hl
ld a, 4
ld a, TILE_WIDTH / 2
.loop
ld b, [hl]
ld [hl], d