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