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 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
Get step-by-step solutions from verified subject matter experts
