Skip to content

Commit 1af924c

Browse files
runer112adriweb
authored andcommitted
Un-un-optimize gfx_TilePtrMapped
I had previously over-optimized it and broke it, which prompted MateoC to revert the optimizations entirely, but now I'm putting back in the optimizations that were valid.
1 parent 367b618 commit 1af924c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/graphx/graphx.asm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2927,10 +2927,9 @@ gfx_TilePtrMapped:
29272927
pop de ; return vector
29282928
pop iy ; tilemap struct
29292929
pop bc ; x offset
2930-
pop hl ; y offset
2931-
push hl
2932-
push bc
2933-
push iy
2930+
ex (sp),hl ; y offset
2931+
push de
2932+
push de
29342933
push de
29352934
ld h,(iy+13) ; tilemap width
29362935
mlt hl

0 commit comments

Comments
 (0)