Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > MSDOS Programmer > Re: Int questio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 432 of 501
Post > Topic >>

Re: Int question

by "gerotica" <pgerotica@[EMAIL PROTECTED] > Dec 6, 2006 at 08:41 PM

Yes, great. Jack Klein solved the problem, from another group.
Apparently I wasnt pu****ng correctly. Here is what he wrote:

"You pop bx instruction is popping the top of the stack into bx, but
what is on top of the stack is not the interrupted programs bx value,
but the last thing that was pushed, which is interrupted program's bp
value.

So what your isr is doing is setting the interrupted program's bp
register to 0, not its bx register.


It doesn't matter what register you use to change a value, you need to
change the value at the location on the stack that was pushed from bx,
and will be popped back into bx before the iret instruction.


If I'm calculating correctly, you need to change the xor bx, bx to
something like:


   mov word ptr [bp + 14], 0 "

Solved, great. 
Tks to all of you guys.
 




 7 Posts in Topic:
Int question
"gerotica" <  2006-12-06 09:57:04 
Re: Int question
pklos@[EMAIL PROTECTED]   2006-12-06 18:38:42 
Re: Int question
Doors <doorsremove@[EM  2006-12-06 16:39:49 
Re: Int question
"gerotica" <  2006-12-06 19:18:19 
Re: Int question
"gerotica" <  2006-12-06 19:53:13 
Re: Int question
"gerotica" <  2006-12-06 20:41:46 
Re: Int question
"gerotica" <  2006-12-06 20:53:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 22:53:55 CDT 2008.