VOGONS


First post, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

It's +2 more than it should be.
eg loading a .com file, initial sp should be 0fffe, but it's 0000.
For MZ files, like the Symbology demo, it's 0102h instead of 0100h (which actually causes a crash later if you single-step at any point).
Interestingly, the initial zero is pushed to the stack as it should be.
This might be a reason why some demos don't run, though Symbology's problem is keyboard-related.

The initial sp is also wrong when debug.exe is run with no parameters (00fdh instead of 0ffeeh).

Reply 1 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

with cvs of today ? I changed something in dos_execute regarding to which flags are pushed on the stack.
Might be related

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 3, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

I'm still looking at 0.72. I'll grab a CVS version and see if it's fixed.

Reply 3 of 3, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

Okay, it's fixed for ax=4b01h, but debug.exe with no parameters still has the sp=00fdh. It's strange, but probably not important.