Code:
@Convert to thumb
add r2,pc,#1
bx r2
.thumb
ldr r0,InventorySlot1
ldrh r1,Chardiff
mov r2,#0xE
Swap:
ldrh r3,[r0]
ldrh r4,[r0,r1]
strh r4,[r0]
strh r3,[r0,r1]
add r0,#2
sub r2,#1
bpl Swap
bx lr
.arm
InventorySlot1:
.long 0x21D88FE
Chardiff:
.short 0x228C
Edit: May cause problems with just a normal activator because once it swaps once, it'll keep swapping back and forth until you release the button