From cf80989154bbb8985bec1d2e089c680714b9b804 Mon Sep 17 00:00:00 2001 From: Astatin Date: Fri, 24 Jan 2025 18:49:12 +0900 Subject: Fix XY/YX/BC/CB issue thingy --- entity/utils.gbasm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'entity/utils.gbasm') diff --git a/entity/utils.gbasm b/entity/utils.gbasm index e2b7c1c..8a44d6d 100644 --- a/entity/utils.gbasm +++ b/entity/utils.gbasm @@ -43,7 +43,7 @@ $end: .END -Get_Position_After_Move: ; entity (whatever alignement) in HL, direction to test in A, X Result in C, Y result in B, E being how much tile entity will move +Get_Position_After_Move: ; entity (whatever alignement) in HL, direction to test in A, XY result in BC, E being how much tile entity will move PUSH HL PUSH DE LD D, A @@ -77,11 +77,6 @@ Get_Position_After_Move: ; entity (whatever alignement) in HL, direction to test .ADD_A_TO_DIRECTION_BC Get_Position_After_Move.Skip_Move: - - LD A, C - LD C, B - LD B, A - POP DE POP HL RET -- cgit v1.2.3-70-g09d2