Advertisement
namofure

PMDTOKI ダンジョン生成23bitLCG?

Aug 3rd, 2024 (edited)
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 1.17 KB | None | 0 0
  1. :022E59A8 02350C70 eoreqs r0,r5,#0x7000
  2. :022E59AC E59F2048 ldr r2,[r15, #+0x48]     ;r15+0x48=*(022e59fc)=#37031024(0x02350c70)
  3. :022E59B0 E5D20000 ldrb r0,[r2, #+0x0]      ;r2+0x0=*(02350c70)=#0(0x00000000)
  4. :022E59B4 E3500000 cmp r0,#0x0
  5. :022E59B8 E59F0040 ldr r0,[r15, #+0x40]     ;r15+0x40=*(022e5a00)=#1566083941(0x5d588b65)
  6. :022E59BC 0A000006 beq 022E59DC
  7. :022E59C0 E592300C ldr r3,[r2, #+0xc]       ;r2+0xc=*(02350c7c)=#1(0x00000001)
  8. :022E59C4 E59F1038 ldr r1,[r15, #+0x38]     ;r15+0x38=*(022e5a04)=#2531011(0x00269ec3)
  9. :022E59C8 E080C093 umull  r12,r0,r3,r0
  10. :022E59CC E09C1001 adds r1,r12,r1
  11. :022E59D0 E1A00801 mov  r0,r1,lsl #0x10     ;r0=-1631387648(0x9ec30000)
  12. :022E59D4 E582100C str r1,[r2, #+0xc]       ;r2+0xc=*(02350c7c)=#1(0x00000001)
  13. :022E59D8 EA000005 b 022E59F4
  14. :022E59DC E5921004 ldr r1,[r2, #+0x4]       ;r2+0x4=*(02350c74)=#1(0x00000001)
  15. :022E59E0 E0000091 mul  r0,r1,r0
  16. :022E59E4 E2801001 add  r1,r0,#0x1
  17. :022E59E8 E1A00821 mov  r0,r1,lsr #0x10     ;r0=0(0x0)
  18. :022E59EC E1A00800 mov  r0,r0,lsl #0x10     ;r0=0(0x0)
  19. :022E59F0 E5821004 str r1,[r2, #+0x4]       ;r2+0x4=*(02350c74)=#1(0x00000001)
  20. :022E59F4 E1A00820 mov  r0,r0,lsr #0x10     ;r0=0(0x0)
  21. :022E59F8 E12FFF1E bx r14 (Jump to addr_00000000?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement