Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. // Testing endianness conversion
  2. U32 *fuck = (U32*)1337;
  3. volatile U32 kcuf_builtin = __builtin_bswap_32(*fuck);
  4. 8000210e: e0 6b 05 39 mov r11,1337
  5. 80002112: 76 08 ld.w r8,r11[0x0]
  6. 80002114: 5c b8 swap.b r8
  7. 80002116: 50 18 stdsp sp[0x4],r8
  8. volatile U32 kcuf_manual = toLittleEndian32(*fuck);
  9. 80002118: 76 0a ld.w r10,r11[0x0]
  10. 8000211a: f4 09 16 10 lsr r9,r10,0x10
  11. 8000211e: 5c 7a castu.h r10
  12. 80002120: f2 08 14 08 asr r8,r9,0x8
  13. 80002124: f1 e9 10 88 or r8,r8,r9<<0x8
  14. 80002128: f4 09 14 08 asr r9,r10,0x8
  15. 8000212c: 5c 78 castu.h r8
  16. 8000212e: f3 ea 10 89 or r9,r9,r10<<0x8
  17. 80002132: f1 e9 11 08 or r8,r8,r9<<0x10
  18. 80002136: 50 08 stdsp sp[0x0],r8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement