VOGONS


First post, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Hello,
For instance, if I have
mov ah,4ch
int 21h

How can you determine what int21h returns? I am writing a debugger in my spare time. So please experts do help me.
Thanks
Jack

Reply 3 of 8, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Thank you all.
Basically, When I trace my code. I have a setState function that concurrently update the states of the registers/memory. But when I run into a DOS interrupt instruction, I am stuck as I can't predict the results of the instruction. For instance
mov ax, 10
mov ch, 3

I could setState(AX, 10);
and setState(CH,3);
Thanks
Jack

Reply 4 of 8, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

But when I run into a DOS interrupt instruction, I am stuck as I can't predict the results of the instruction.

Right, and you can't predict them otherwise you'd have a full bios/dos/etc. emulator instead of a debugger.

Reply 8 of 8, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

http://www.openwatcom.org

The open watcom debugger, wd, is maybe more powerful and complex than you're looking for, though.

Are these "needs" you mention a call stack?