The following are some assembly language instructions of ahypothetical CPU. The instructions are written to find theremainder when 16 is divided by 7 and store the remainder in amemory location.
location assembly instruction
0 load 16
1 sub 7
2 bge 1
3 store 4
4 (unknown)
The operands of the above instructions are given in decimal.
(i) Translate the first four assembly instructions (at locations0 to 3) into 8-bit machine language instructions (3 bits foroperation code and 5 bits for operand) using the following table.Ignore the last column at this moment.
binary
operation
code
assembly
language
operation
code
operand (5 bits)meaning100loadxload the value x into theaccumulator101subx
subtract the value x from the accumulator A (i.e., A
PayPal Gateway not configured
PayPal Gateway not configured