// This program is to do - x=y+z, // where x is the value stored in address 100, // y is the value stored in the memory address 104, // and z is the value stored in the memory address 108. // In the end of program, the data in the memory address 100 should be 10. // line 0 and 1 - r0<-104; // line 2 and 3 - r1<-Mem[r0] // line 4 and 5 - r0<-108; // line 6 and 7 - r2<-Mem[r0] // line 8 and 9 - r3<-r1+r2 // line 10 and 11 - r0<-100; // line 12 and 13 - Mem[r0]<-r3 // line 14 and 15 - halt // line 104 - set Mem[104] to be 8; // line 108 - set Mem[108] to be 2. 0:104 1:000010 00 2:00 00 0000 3:000110 01 4:108 5:000010 00 6:00 00 0000 7:000110 10 8:01 10 0000 9:000001 11 10:100 11:000010 00 12:00 11 0000 13:000101 00 14:00000000 15:001000 00 104:0000 1000 108:0000 0010