Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Equipment and Components used 1. FRDM-KL25Z platform 2. PC loaded with Keil MDK Pre-Lab Tasks 1. Write a set of instructions to compare the contents
Equipment and Components used
Pre-Lab Tasks 1. Write a set of instructions to compare the contents of RO and R1. Your program should assign the highest value in the memory location 0x20000004. Hint: If RO >R1, Store RO [0x20000004] and if R1>RO; Store R1 [0x20000004). i. Load RO = #Ox10 and R1 = #0x40. Use BGT or BLE branch instructions. ii. Load RO = #Ox13 and R1 = #Ox96. BCC or BCS branch instructions. iii. Load RO = #0x95 and R1 = #0x82. Use BMI or BPL branch instructions. Run your assembly programs and provide snapshots to verify your code. Pre-Lab Tasks 1. Write a set of instructions to compare the contents of RO and R1. Your program should assign the highest value in the memory location 0x20000004. Hint: If RO >R1, Store RO [0x20000004] and if R1>RO; Store R1 [0x20000004). i. Load RO = #Ox10 and R1 = #0x40. Use BGT or BLE branch instructions. ii. Load RO = #Ox13 and R1 = #Ox96. BCC or BCS branch instructions. iii. Load RO = #0x95 and R1 = #0x82. Use BMI or BPL branch instructions. Run your assembly programs and provide snapshots to verify your code 1. FRDM-KL25Z platform
2. PC loaded with Keil MDK
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started