Toggle Bit in Memory

Easy Assembly Memory
Solve this problem

Write ARM assembly to toggle bit 3 of a 32-bit value stored at address r0.

Constraints

  • r0 holds pointer.
  • r1 used as temp.
  • Toggle bit 3 only.
  • Return updated value in r0.
Starter codeAssembly
1.global toggle2 3toggle:4    ; TODO