(10) 1) For each of the following program segments, execute the program one instruction at a time. At the end of each instruc (10) 1) For each of the following program segments, execute the program one instruction at a time. At the end of each instruction execution, indicate any changes in registers, condition flags, and/or memory locations. Once you compile the program segments below and before starting the execution on one instruction at a time by using the CCS step-over function, you need to manually fill in the initial data in the registers and memory. Note that the result of any instruction may be an operand for succeeding instructions. New Contents Memory Contents Memory Address N ZVC R5 R6 Ox1100 0200 0 0 01 0XA006 0x0208 Instruction Ox2200 O oOx 020f Oxf 5 0202 ADDC.W@R5+, R6 eloxo20A OX330D 0x3300 0204 MOV &0204h, R6 0206 0x4400 0|0|| |0pK 0204|わX33D 0 MOV.W R6, 0(R5) 0x5500 Ox Oo o OX20A 0208 BIC.W #0x3100, R6 Ox 200 Ox6600 020A りK 330c SUBC 6(R6),-2(R5) New Memory Contents Memory Address NZVC R5 SP Contents 0 1 0 1 0x0200 0X020A 0200 0x5800 Instruction Oxo200 0x020A 0x5700 RRC.W -4(SP) 0202 ooPoloo ox0208 PUSH 4(R5) 0x5600 0204 6700ox0208 0x5500 0206 XOR -2(SP), R5 O ox0200 0x0208 0x5400 bx660 0208 AND SP, R5 Oolo coo oxG600 ox020A 020A 0x5300 POP R5



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *