Real mode assembly IV: Difference between revisions

m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
m (Bot: Replace deprecated source tag with syntaxhighlight)
 
(3 intermediate revisions by 3 users not shown)
Line 11:
My style of handler goes like this:
 
<syntaxhighlight lang="asm">
inthandler:
cmp ah,0
Line 31 ⟶ 32:
; Do whatever needed here
iret
</syntaxhighlight>
 
But that's just an outline, you'd need to do it up however you need to use your calls. The FLAGS register is restored in an iret so you need to set it on the stack again depending on how it's set before the iret is done!
Line 46 ⟶ 48:
# Restore your original ES and you're done!
 
[[Category:Assembly]]
[[Category:Real mode assembly]]
<- [[Real mode assembly III]] | [[Real mode assembly V]] ->