Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .globl _main
- _main:
- exisendbyte:
- # r0 should be the byte.
- # r1, r2 get clobbered
- mov r2, #0xB0
- mov r2, r2, LSL #24
- add r2, r0, LSL #20
- # r2 is now 0xB0000000 + (sendbyte<<20)
- mov r0, #0x0d
- mov r1, r0, LSL #24
- mov r0, #0x68
- add r1, r0, LSL #8
- # r1 is 0x0d006800
- # 19; d0; cd00
- mov r0, #0xd0
- str r0, [r1, #0x14]
- str r2, [r1, #0x24]
- mov r0, #0xcd00
- str r0, [r1, #0x20]
- bx lr
- exicheckreceivewait:
- ldr r0, [r1, #0x20]
- ands r0, r0, #1
- bne exicheckreceivewait
- ldr r2, [r1, #0x24]
- str r0, [r1, #0x14]
- mov r2, r2, LSL #26 ;#did it work?
- and r0, r2, #1
Add Comment
Please, Sign In to add comment