199k views
5 votes
Given the following program:

Hex Address Label Instruction
100 Start, LOAD A
101 ADD B
102 STORE D
103 OUTPUT
104 CLEAR
105 ADDI C
106 STORE B
107 HALT
108 A, HEX 00CC
109 B, HEX 0014
10A C, HEX 0108
10B D, HEX 0000

List the hexadecimal code (Machine code) for each instruction after assembling the program.

1 Answer

1 vote

Answer:

See explaination

Step-by-step explanation:

Hex or base 16 or hexadecimal is a numeral system that uses 16 symbols. The symbols include 0-9 and a-f (sometimes A-F). An example of a hexadecimal number is 3BF2. Computer science applications can use hexadecimal for binary coding in computing and digital electronics

Please kindly check attachment for the step by step solution of the given problem.

Given the following program: Hex Address Label Instruction 100 Start, LOAD A 101 ADD-example-1
User Laureano
by
5.5k points