Dos App hangs with DPMI / PIC problem
Hi,
Thank you for helping. Okay:
1. I tried e c316:903a 75, and I see the je changed to jne. However, the app continues to hang inside that loop...
2. I tried e c316:903a EB08, and I see the je changed to or [bi+si], cl . The app continues to hang inside that loop. However, I think I am not doing exactly what Ryan wanted me to do though...
3. I tried d si+0x8 10 after the test statement. The value does not change. I checked it for 4 iterations.
What else can I try?
Quoted 20 lines
From: Bart Oldeman <[email protected]>
To: anon permutation <[email protected]>
CC: [email protected], [email protected]
Subject: Re: Dos App hangs with DPMI / PIC problem
Date: Wed, 15 Sep 2004 20:54:17 +1200 (NZST)Quoted 7 lines · anon permutation
Quoted 5 lines
The other thing is that you can try patching the conditional jump immediately after that comparison that never succeeds:
c316:9036 F64408FF test [si+0x8],0xff c316:903a 7408 je 9044how do i "patch" this jump?
in dosdebug type:
e c316:903a 75
Quoted 8 lines
that will change the "je" to jne. I had to do something similar for command keen 4, it was hanging in a very similar way.
Bart
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
Quoted 7 lines · anon permutation
Hi,
Thank you for helping. Okay:
1. I tried e c316:903a 75, and I see the je changed to jne. However, the app continues to hang inside that loop...
The flow of execution should be diverted either to or away from the jump target depending on the value of the zero flag. If nothing changes in the trace, then I guess you've done something wrong. Note that it is possible for the program to find another place to get stuck after that.
Quoted 3 lines
2. I tried e c316:903a EB08, and I see the je changed to or [bi+si], cl . The app continues to hang inside that loop. However, I think I am not doing exactly what Ryan wanted me to do though...
Um, something didn't work there. Try
e c316:903a EB
e c316:903b 08
But inverting the conditional jump as bart suggested should have at least gotten you past that point.
Quoted 1 line
What else can I try?
Asking the vendor what the program is doing at that point so they can offer suggestions.
Signature · 1 line
Ryan Underwood, <[email protected]>