Google Answers Logo
View Question
 
Q: Assembly Language Simple Program Codings ( No Answer,   0 Comments )
Question  
Subject: Assembly Language Simple Program Codings
Category: Computers
Asked by: sendwaheed-ga
List Price: $12.00
Posted: 11 May 2004 21:53 PDT
Expires: 17 May 2004 13:10 PDT
Question ID: 344989
Where can I get solutions to the following problems in the book
'Assembly Language Programming and Organization of the IBM PC', by
Ytha Yu and Charles Marut (ISBN 0-07-072692-2). 
<<<<< I need these very soon >>>>

Prob #10 (page 115), Prob #10 (page 136), Prob #10 (page 160), 
Prob #7 (page 226), Prob #4 (page 308), Prob #5 (page 330).
---------------------------------------------------------
Prob1-write a program that will prompt the user to enter a hex digit
character ("0" ... "9" or "A" ... "F"), display it on the next like in
decimal, and ask the user if he or she wants to do it again. If the
user types "y" or "Y", the program repeats; if the user types anything
else, the program terminates. If the user enters an illegal character,
prompt the user to try again.
------------------------------------------------------
Prob2-write a program that prompts the user to type a hex number of
four hex digits or less, and outputs it in binary on the next line. If
the user enters an illegal character, he or she should be prompted to
begin again. Accept only uppercase letters.
-----------------------------------------------------------
Prob3-The following method can be used to generate random numbers in
the range 1 to 32767.
Start with any number in this range.
Shift left once.
Replace bit 0 by the OR of bits 14 and 15.
Clear bit 15.
-----------------------------------------------------------
Prob4-Suppose the following string has been declared:
STRING1 DB  'T H I S I S A T E S T'
STRING2 DB  11 DUP (?)
write some code that will cause STRING1 to be copied into STRING2 with
the blank characters removed.
---------------------------------------------------------------
Prob5-The position of a substring within a string is the number of
bytes from the beginning of the string to the start of the substring.

Write a seprately assembled NEAR procedure FIND_SUBST that receives
the offset addresses of the first string in SI and the second string
in DI and determins whether the second string is a substring of the
first; if so, FIND_SUBST returns its positiuon in AX. If the second
string is not a substring of the first string, the procedure returns a
negative number in AX.

Write a program to test FIND_SUBST; the testing program reads the
strings, calls FIND_SUBST, and displayes the result.
-------------------------------------------------------
Prob6- Write a program that will output the message "Hello" once
every half a second to the screen.

Clarification of Question by sendwaheed-ga on 12 May 2004 15:09 PDT
THE WHOLE THING MUST BE IN 'MASM32' OR 'DOS' MODE
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

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