Talk About Network



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 > Assembly 370 > call instructio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 281 of 328
Post > Topic >>

call instruction

by "CN99" <leon800219@[EMAIL PROTECTED] > May 27, 2006 at 09:14 AM

Hi all:

    My question is what value AX will contains after the execution
following 
code?

144D:0000 B84C14        MOV     AX,144C
144D:0003 8ED0          MOV     SS,AX
144D:0005 BC1000        MOV     SP,0010
144D:0008 8ED8          MOV     DS,AX
144D:000A B80000        MOV     AX,0000
144D:000D FF160E00      CALL    [000E]
144D:0011 40            INC     AX
144D:0012 40            INC     AX
144D:0013 40            INC     AX

Here's my description:
CALL    [000E] // Will change IP to 16, in HEX 10. So execution jump to 
execute 00(end byte of FF160E00)?
              // (I thought execution was supposed to jump to 0, 3, 5, 8 ~

13, but not 10)
             // then next the first "INC     AX" will be executed? So AX 
turn out to be 3 ?




 2 Posts in Topic:
call instruction
"CN99" <leon  2006-05-27 09:14:12 
Re: call instruction
leon800219@[EMAIL PROTECT  2006-05-26 18:22:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed May 14 3:34:02 CDT 2008.