Don't clobber ax in event_click in hello.asm

This commit is contained in:
Juhani Krekelä 2023-03-23 18:30:48 +02:00
parent bd9a62c1ce
commit 27a52e86e7
1 changed files with 2 additions and 2 deletions

View File

@ -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: