Real mode assembly IV: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
m Bot: Replace deprecated source tag with syntaxhighlight
 
Line 11:
My style of handler goes like this:
 
<sourcesyntaxhighlight lang="asm">
inthandler:
cmp ah,0
Line 32:
; Do whatever needed here
iret
</syntaxhighlight>
</source>
 
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!