From 27a52e86e709c12af2803819055e73d60532fa93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Thu, 23 Mar 2023 18:30:48 +0200 Subject: [PATCH] Don't clobber ax in event_click in hello.asm --- hello.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hello.asm b/hello.asm index 8980241..ad1634c 100644 --- a/hello.asm +++ b/hello.asm @@ -252,9 +252,8 @@ event_mouse: ; bx = Y ; cx = X ; dl = mouse buttons -; out: -; clobbers ax event_click: + push ax ; This is not a true event passed into our event handler, but ; rather one we've synthetized from the mouse event ; The reason we synthetize this event is because most interface @@ -306,6 +305,7 @@ event_click: .not_title_bar: .end: + pop ax ret ; in: