Advertisement
Guest User

recomp_entrypoint.c

a guest
May 17th, 2024
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. #include "recomp.h"
  2. #include "disable_warnings.h"
  3.  
  4. void recomp_entrypoint(uint8_t* rdram, recomp_context* ctx) {
  5. uint64_t hi = 0, lo = 0, result = 0;
  6. unsigned int rounding_mode = DEFAULT_ROUNDING_MODE;
  7. int c1cs = 0;
  8. // lui $t0, 0x8016
  9. ctx->r8 = S32(0X8016 << 16);
  10. // lui $t1, 0x13
  11. ctx->r9 = S32(0X13 << 16);
  12. // addiu $t0, $t0, -0x1E10
  13. ctx->r8 = ADD32(ctx->r8, -0X1E10);
  14. // ori $t1, $t1, 0x6C80
  15. ctx->r9 = ctx->r9 | 0X6C80;
  16. L_80125910:
  17. // addi $t1, $t1, -0x8
  18. ctx->r9 = ADD32(ctx->r9, -0X8);
  19. // sw $zero, 0x0($t0)
  20. MEM_W(0X0, ctx->r8) = 0;
  21. // sw $zero, 0x4($t0)
  22. MEM_W(0X4, ctx->r8) = 0;
  23. // bne $t1, $zero, L_80125910
  24. if (ctx->r9 != 0) {
  25. // addi $t0, $t0, 0x8
  26. ctx->r8 = ADD32(ctx->r8, 0X8);
  27. goto L_80125910;
  28. }
  29. // addi $t0, $t0, 0x8
  30. ctx->r8 = ADD32(ctx->r8, 0X8);
  31. // lui $t2, 0x8012
  32. ctx->r10 = S32(0X8012 << 16);
  33. // lui $sp, 0x8016
  34. ctx->r29 = S32(0X8016 << 16);
  35. // addiu $t2, $t2, 0x5950
  36. ctx->r10 = ADD32(ctx->r10, 0X5950);
  37. // jr $t2
  38. // addiu $sp, $sp, 0x3F0
  39. ctx->r29 = ADD32(ctx->r29, 0X3F0);
  40. LOOKUP_FUNC(18446744071563270480)(rdram, ctx);
  41. return;
  42. // addiu $sp, $sp, 0x3F0
  43. ctx->r29 = ADD32(ctx->r29, 0X3F0);
  44. // nop
  45.  
  46. // nop
  47.  
  48. // nop
  49.  
  50. // nop
  51.  
  52. // nop
  53.  
  54. // nop
  55.  
  56. ;}
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement