From 8cf33a2685cfcbc85231170b264b46b1d9c60273 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 27 Jan 2026 17:26:13 +0100 Subject: [PATCH] action: Added actor getter --- src/action.s | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/action.s b/src/action.s index 707ffb2..19b389e 100644 --- a/src/action.s +++ b/src/action.s @@ -30,5 +30,14 @@ action_attack: add hl, bc ; hl = tact ; check if there is something to attack + ld a, [hl+] + ld c, a + ld h, [hl] + ld l, c + or a, h + ret z ; no actor here... + + ; hl = actor + BREAK ret -- 2.30.2