Advertisement
ThePJ120

Untitled

Jan 4th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1.  
  2. lis %r3, 0x1
  3. ori %r3, %r3, 0x68
  4. lis %r4, 0x1005
  5. ori %r4, %r4, 0x8
  6. stw %r3, 0x0(%r4)
  7. stw %r2, 0x4(%r4)
  8. stw %r4, 0x8(%r4)
  9. lis %r3, 0x1005
  10. lis %r4, 0x1005
  11. ori %r4, %r4, 0x10
  12. li %r5, 0
  13. li %r6, 0
  14. li %r7, 0x300
  15. li %r8, 0x3000
  16. li %r9, 0
  17. lis %r10, 0x1005
  18. ori %r10, %r10, 0x50
  19. li %r11, 0x34
  20. ;sc
  21. lis %r3, 0x1005
  22. ld %r3, 0(%r3)
  23. li %r11, 0x35
  24. ;sc
  25. infinite:
  26. nop
  27. nop
  28. b infinite
  29.  
  30. retry:
  31. lis %r12, 0x1005
  32. ori %r12, %r12, 0x100
  33. lwz %r3, 0(%r12)
  34. cmpwi %r3, 0
  35. beq doFuncRPC
  36.  
  37. mr %r11, %r3
  38. li %r3, 0
  39. stw %r3, 0(%r12)
  40. ld %r3, 0x8(%r12)
  41. ld %r4, 0x10(%r12)
  42. ld %r5, 0x18(%r12)
  43. ld %r6, 0x20(%r12)
  44. ld %r7, 0x28(%r12)
  45. ld %r8, 0x30(%r12)
  46. ld %r9, 0x38(%r12)
  47. ld %r10, 0x40(%r12)
  48. ;sc
  49. lis %r12, 0x1005
  50. ori %r12, %r12, 0x100
  51. std %r3, 0x48(%r12)
  52.  
  53. doFuncRPC:
  54. lis %r3, 0x1006
  55. lwz %r12, 0x90(%r3)
  56. cmpwi %r12, 0
  57. beq doSleep
  58.  
  59. ld %r4, 0x08(%r3)
  60. ld %r5, 0x10(%r3)
  61. ld %r6, 0x18(%r3)
  62. ld %r7, 0x20(%r3)
  63. ld %r8, 0x28(%r3)
  64. ld %r9, 0x30(%r3)
  65. ld %r10, 0x38(%r3)
  66. ld %r11, 0x40(%r3)
  67. lfs %f1, 0x48(%r3)
  68. lfs %f2, 0x50(%r3)
  69. lfs %f3, 0x58(%r3)
  70. lfs %f4, 0x60(%r3)
  71. lfs %f5, 0x68(%r3)
  72. lfs %f6, 0x70(%r3)
  73. lfs %f7, 0x78(%r3)
  74. lfs %f8, 0x80(%r3)
  75. lfs %f9, 0x88(%r3)
  76. ld %r3, 0x0(%r3)
  77. mtctr %r12
  78. lis %r12, 0x1006
  79. std %r2, 0xA8(%r12)
  80. ld %r12, 0xB0(%r12)
  81. cmpwi %r12, 0
  82. beq callFunction
  83.  
  84. mr %r2, %r12
  85.  
  86. callFunction:
  87. bctrl
  88.  
  89. lis %r4, 0x1006
  90. li %r5, 0
  91. ld %r2, 0xA8(%r4)
  92. std %r5, 0xB0(%r4)
  93. stw %r5, 0x90(%r4)
  94. std %r3, 0x98(%r4)
  95. stfs %f1, 0xA0(%r4)
  96.  
  97. doSleep:
  98. li %r3, 0x64
  99. li %r11, 0x08D
  100. ;sc
  101.  
  102. b retry
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement