V86 returns to caller

This commit is contained in:
Lucia Ceionia
2022-09-17 16:31:41 -05:00
parent 8bfcd4fd19
commit 1545a9a790
5 changed files with 8 additions and 6 deletions

View File

@@ -71,6 +71,7 @@ jmp $
global enter_v86
enter_v86:
mov ebp, esp ; save stack pointer
mov dword [0x20004], ebp ; tss ESP0
push dword [ebp+4] ; ss
push dword [ebp+8] ; esp
pushfd ; eflags