Question: Write a function in ARM assembler that takes 2 parameters: an array of char and a length. Scramble the string by performing exclusive or

Write a function in ARM assembler that takes 2 parameters: an array 

Write a function in ARM assembler that takes 2 parameters: an array of char and a length. Scramble the string by performing exclusive or of each value by a number. The number will start with the length of the string +5 and decrement by 1 each time. For example, given: char s[] = "ABC"; scramble(s, 3); and given that 'A' = 65, 'B' = 66, 'C' = 67 the value in the array should be: 65 XOR 8, 66 XOR 7, 67 XOR 6.

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 Programming Questions!