Question 1
(a)
Show all your work in detail for the following conversions;
i. Convert 5ACh to its decimal representation.
ii. Convert 642$_{10}$ to its hexadecimal presentation.
iii. Convert 1110010101$_2$ to its decimal presentation.
(b)
i. By using 2's complement, solve the following operations.
34$_{10}$ - 123$_{10}$
ii. State the status of carry flag (CY), parity flag (P) and OV flag for the
arithmetic operation;
0 1 1 0 1 1 0 1
+1 1 0 1 0 0 1 1
(c) Execute the program shown below and fill in the trace table with the execution
results.
Table 1
LINE NO. ASSEMBLY RAM REGISTERS
ACCUMULATOR R3
1 RESET 00 00
2 ORG 0000H
3 MOV R3,#76H
4 MOV A,R3
5 SUBB A,#0C2H
END