For Programmers: Free Programming Magazines  


Home > Archive > ASM370 > May 2006 > call instruction









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author call instruction
CN99

2006-05-26, 9:56 pm

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 ?


leon800219@gmail.com

2006-05-26, 9:56 pm


CN99 =E5=86=99=E9=81=93=EF=BC=9A

> Hi all:
>
> My question is what value AX will contains after the execution follow=

ing
> 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 ?


Sorry I was post this to wrong news group again, pls ignore it.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com