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 > Assembly 370 > Re: call instru...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 280 of 328
Post > Topic >>

Re: call instruction

by SkippyPB <swiegand@[EMAIL PROTECTED] > May 22, 2006 at 12:45 PM

On Mon, 22 May 2006 22:06:46 +0800, "CN99" <leon800219@[EMAIL PROTECTED]
>
enlightened us:

>Hi all:
>
>Can anybody tell me what the value will be in ax, after the 'call'
excuted, 
>and why? Thanks!
>To me:
>pop ax // ax = 8
>add ax, ax // ax = 16
>pop bx // bx = 1000
>add ax, bx // ax = 1000 + 16 -> 1016?
>
>
>1000:0        b8 00 00          mov ax, 0
>1000:3        9A 09 00 00 10    call far ptr s
>1000:8        8 40              inc ax
>1000:9        9 58              s:pop ax
>                                  add ax, ax
>                                  pop bx
>                                  add ax, bx 
>


Wrong newsgroup.  This is the IBM mainframe assembler newsgroup.

Regards,
          ////
         (o o)
-oOO--(_)--OOo-


"I told my wife that black underwear turns me on, so
she didn't wash my shorts for a month."
-- Milton Berle
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Remove nospam to email me.

Steve
 




 4 Posts in Topic:
call instruction
"CN99" <leon  2006-05-22 22:06:46 
Re: call instruction
SkippyPB <swiegand@[EM  2006-05-22 12:45:20 
Re: call instruction
"Wendy E. McCaughrin  2006-09-14 18:19:38 
Re: call instruction
"Sven Pran" <  2006-09-14 21:02: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 Thu Jul 24 0:49:45 CDT 2008.