Question: Write in ARM assembly language Write a small program to compare two 64-bit values. Set R0 to 0 if two values are equal, set R0

Write in ARM assembly language

Write a small program to compare two 64-bit values. Set R0 to 0 if two values

are equal, set R0 to 1 if two values are not equal. First 64-bit number placed into

R1(HI bits) and R2(LO bits), second number is in R3(HI bits) and R4(LO bits). Use only

4 ARM instructions!

Your code have to work with any numbers in R1-R4

Check your code with all test sets below

MOV R1, #0xAAAAAAAA

MOV R2, #0x55555555

MOV R3, #0xAAAAAAAA

MOV R4, #0x55555555

----

MOV R3, #0x55555555

MOV R4, #0xAAAAAAAA

----

MOV R3, #0xAAAAAAAA

MOV R4, #0xAAAAAAAA

----

MOV R3, #0x55555555

MOV R4, #0x55555555

-- Put your 4 instructions here ---

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!