; returns:
; unit_test_collision_cf_flags: 0 if not collided with a tile
; FLAGS if collided
+ ; _pox_y/x: set to input acot y and x
#macro unit_test_collision
; perform tile collision check
push de
+ ; write y and x pos
+ ld a, b
+ ld [unit_test_collision_pos_y], a
+ ld a, c
+ ld [unit_test_collision_pos_x], a
call unit_get_pos
$1
push bc
; stores the last collision flag result
; that was performed by a test collision call
unit_test_collision_cf_flags: .adv 1
+unit_test_collision_pos_y: .adv 1
+unit_test_collision_pos_x: .adv 1
; self modifying code
; the vblank interrupt jumps here