Question: Consider the program described below. This program is available on eCampus in the name COD1_1.asm. .text .globl main // text section // Define main as
Consider the program described below. This program is available on eCampus in the name "COD1_1.asm". .text .globl main // text section // Define main as global main: MOV X1, #6 MOV X2, #7 ADD X3, X1, X2 // load immediate value (6) into X1 // load immediate value (7) into X2 // add two numbers into X3 Execute the program step by step, and answer the following: 1. Examine the content of registers X1, X2, and X3; 2. Copy the machine code in hexadecimal representation of the instruction number 2 ( MOV X2, #7). 3. Modify the program such that register X3 is equal to 8xX1+ 4xX2 = 76( hint:use multiple add instructions). 5. Take a snapshot for the execute and register windows showing the content of X1 X2 and X3 after running the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
