Reset the stack pointer after seeding the RNG
This commit is contained in:
parent
050bd7e0af
commit
e2abb1c3f8
5
main.asm
5
main.asm
|
@ -29,7 +29,10 @@ entry_seed_loop:
|
||||||
entry_seed_done:
|
entry_seed_done:
|
||||||
mov [RANDOM_STATE], r0
|
mov [RANDOM_STATE], r0
|
||||||
|
|
||||||
; set up the vsync interrupt
|
; set the stach pointer again to pop the return address and flags off the stack
|
||||||
|
mov rsp, SYSTEM_STACK
|
||||||
|
|
||||||
|
; set the interrupt vector for interrupt 0xFF - vsync
|
||||||
mov [0x000003FC], system_vsync_handler
|
mov [0x000003FC], system_vsync_handler
|
||||||
ise
|
ise
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user