Professional Documents
Culture Documents
CSE 231 R1 - O1 Final
CSE 231 R1 - O1 Final
1 a Write a program that prompts the user to enter a binary number and prints the 5
binary number in reverse on the next line.
Example: Type A Number: 10100011
The number in reverse is: 11000101
b Write assembly code for each of the high level language assignment statements: 2*2.5=5
a. A = (B X 5) – (C X 4)
b. B = (A + C) / (C)
2 a Suppose BL contains 11101100 b and CF = 0. Give the new contents of BL and CF after 5
each of the following instruction is executed sequentially: