> Hello Flemming,
DB>>> push CS
DB>>> pop DS
DB>>> mov SS,[_SS] ;restore them back again
DB>>> mov SP,[_SP]
DB>>> ...
FS>> Are you sure this is safe? You are using the stack here. Not
FS>> good when SS and SP are messed up, eh? :)
FS>> There's nothing wrong with:
FS>> mov ss,cs:[_ss]
FS>> mov sp,cs:[_sp]
> I don't see the problem. push,then pop. Stack is not altered, right?
> However, I tried the tsr with Denis's change and it still crashes :)
> More needs to be done.
> Kind regards, Barry
I'd disable interrupts before I messed with the stack pointers though.
---
---------------
* Origin: Toad Hall (1:3634/2.4)
|