Question: PROGRAM 2 : WRITE THIS IN ARM ASSEMBLY LANGUAGE CODE! To exercise the logical operations, write a program that works with three one - byte
PROGRAM : WRITE THIS IN ARM ASSEMBLY LANGUAGE CODE!
To exercise the logical operations, write a program that works with three onebyte data
variables labeled STATUS, CONTROL and PERIPH. The program is to perform the following
operations.
Force bits and of CONTROL to without changing the other bits.
Force bits and of CONTROL to without changing the other bits.
If bit of STATUS is complement bit of CONTROL, otherwise no change to
CONTROL.
Replace bits of PERIPH with the bit hex digit without changing the other
four bits of PERIPH.
Data are stored in "little endian" format bits are numbered down to from left to
right, within each byte.
Test the program by initializing CONTROL to the value STATUS to and
PERIPH to x Display these values as hexadecimal bytes type char in an Expressions
View and capture that view to show the values of CONTROL, STATUS, and PERIPH at the
end of the program.
Then, without leaving the debugger, reset the CPU, change the values of CONTROL to
xCSTATUS to xFO, and PERIPH to xB Run the program and capture the
Expressions View to show the values of the three variables at the end of the program.
Submit your source code and the two Expressions Views.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
