kernel: Ensure new_window doesn't clobber r0

This commit is contained in:
Ry 2022-12-24 01:29:00 -08:00
parent a68e584c82
commit b71d10ab63

View File

@ -28,6 +28,7 @@ const TITLE_BAR_HEIGHT: 16
; outputs: ; outputs:
; none ; none
new_window: new_window:
push r0
push r1 push r1
push r2 push r2
push r3 push r3
@ -140,6 +141,7 @@ new_window:
pop r3 pop r3
pop r2 pop r2
pop r1 pop r1
pop r0
ret ret
; destroy a window and free memory used by it ; destroy a window and free memory used by it