Google Answers Logo
View Question
 
Q: assembly language ( No Answer,   1 Comment )
Question  
Subject: assembly language
Category: Computers > Programming
Asked by: abu112-ga
List Price: $10.00
Posted: 08 Sep 2004 18:44 PDT
Expires: 08 Sep 2004 21:58 PDT
Question ID: 398658
i need the answer for these practes problem in these two links
http://csserver.evansville.edu/~blandfor/EE354/P01.doc
http://csserver.evansville.edu/~blandfor/EE354/P02.doc
Answer  
There is no answer at this time.

Comments  
Subject: Re: assembly language
From: noralain-ga on 08 Sep 2004 20:27 PDT
 
The answer for the first practice problems is:

A) AX=0054

B) AX= 0154

C) AX=0035

D) AX=0221

E) AX=3328

F) AX=0004

G) AX=AA55

H) AX=505A

I) AX=01AD

J) AX=03FE

K) AX=1200

L) AX=1200


The second page answer :
1)

                SHR    AL, 1
    		JNC    DONE
		SHL    AL, 1
		ADD    AL, 1
		ADD    AX, CX
		ADC    BX, DX

DONE:          EXIT


2)
         .DATA
                    MSG db 'Character was an A$'
         .CODE
                    MOV    AX, @DATA
                    MOV    DS, AX
                    MOV    AH, 01
                    INT    21H
                    CMP    AL, 'A' ; CMP   AL, 41h
                    JNZ    DONE
                    MOV    DX, offset MSG
                    MOV    AH, 09
                    INT    21H


  DONE:      MOV    AX, 4C00H
                    INT 21H

good luck

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy