expand your program in part 1 to allow


Expand your program in Part 1 to allow the operand use the "immediate" addressing mode. That is, the value of an operand is stored in the instruction. It should be assumed that the value operand is given as a decimal number.

Name this program as part2.c

Here is an example of the execution of the program. In this example, the name of the file containing the instructions is source2. The contents of source2 are:

add r1,r2,r3
and r0,r4,r5
add r6,r7,-9
and r0,r1,15

The execution of the program is shown below. The command line argument is marked in red. $ ./part2 source2

1283
5105
1df7
506f

Request for Solution File

Ask an Expert for Answer!!
Application Programming: expand your program in part 1 to allow
Reference No:- TGS0501550

Expected delivery within 24 Hours