> DB> push CS
> DB> pop DS
> DB> mov SS,[_SS] ;restore them back again
> DB> mov SP,[_SP]
> DB> ...
> Are you sure this is safe? You are using the stack here. Not
> good when SS
> and SP are messed up, eh? :)
> There's nothing wrong with:
> mov ss,cs:[_ss]
> mov sp,cs:[_sp]
same thing. except CS takes one byte in each.cli is also needed when exit
from an INT (some not all of them preverves flags)
special care when switching stack also.
---
---------------
* Origin: Silicon Palace {514}432-2953 Lafontaine, Qu‚bec (1:242/100)
|