Advertisement
cia

PPC Cbuff_AddText

cia
Jun 14th, 2015
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. fps_monitor: #Store this in FPS
  2. li r3, 0
  3. li r4, 0x15
  4. bl 0xD1CD8 //KeyIsDown(int key)
  5. cmpwi r3, 0
  6. beq 0x84
  7. bl 0x1FCF20
  8. b 0x84
  9.  
  10. __main: # Store this at 0x1FCF20
  11. lis r4, 0x73
  12. addic r4, r4, 0x3830 //0x733830 - title
  13. lis r5, 0x73
  14. addic r5, r5, 0x3870 //0x733870 - preset
  15. li r6, 0x20 //maxlength
  16. li r7, 0
  17. lis r8, 0x72
  18. addic r8, r8, 0xDCE8 //0x72DCE8
  19. lis r9, 0x72
  20. addic r9, r9, 0x39A0 //0x7239A0
  21. bl 0x26F5BC //Open Keyboard Address
  22. b WaitResult
  23.  
  24. WaitResult:
  25. lis r3, 0x73
  26. lwz r3, 0x145C(r3) //0x73145C
  27. cmpwi r3, 0
  28. bne WaitResult
  29.  
  30. GetResult:
  31. li r3, 0 //client
  32. lis r4, 0x29F
  33. addic r4, r4, 0x0E22 //0x29F0E22
  34. bl 0x1DB240
  35.  
  36. EndOfFunc:
  37. blr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement