Removed redundant hl push from collison routine
authorLukas Krickl <lukas@krickl.dev>
Mon, 14 Oct 2024 12:11:58 +0000 (14:11 +0200)
committerLukas Krickl <lukas@krickl.dev>
Mon, 14 Oct 2024 12:11:58 +0000 (14:11 +0200)
src/collision.s

index 91dcf8e68cddefe39edda28a5880cd0d0c8f7e29..7d1920c535bed037f3efdeeedfbc80ebeb7e4819 100644 (file)
@@ -51,7 +51,6 @@ collision_tile_table_check:
 @loop:
   push af
   push de
-  push hl
 
   ld a, [de]
   ld l, a
@@ -71,7 +70,6 @@ collision_tile_table_check:
 
   pop af
   pop de
-  pop hl
 
   dec a ; a--
   cp a, 0 ; again if not 0