SHARE
TWEET

[FF8/ASM HACK] Worldmap UV mapping original

MaKiPL Dec 20th, 2016 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alloc(newmem,2048)
  2.  
  3. newmem:
  4. FirstRemove:
  5. cmp cl,[ebp-04]
  6. jne FirstAdd
  7. sub cl, 2 //U1
  8. JMP SecondRemove
  9.  
  10. FirstAdd:
  11. CMP cl, [ebp-01]
  12. JNZ short SecondRemove
  13. add cl, 2 //U1
  14.  
  15. SecondRemove:
  16. mov dl, [ebp-08]
  17. mov [ebp-05], cl
  18. cmp dl, [ebp-02]
  19. jne SecondAdd
  20. sub dl, 2 //V1
  21. jmp ThirdRemove
  22.  
  23. SecondAdd:
  24. cmp dl, [ebp-03]
  25. jne ThirdRemove
  26. add dl, 2 //V1
  27.  
  28. ThirdRemove:
  29. mov cl, [ebp-04]
  30. mov [ebp-06], dl
  31. mov dl, [ebp-07]
  32. cmp dl, cl
  33. jne ThirdAdd
  34. sub dl, 2 //U2
  35. jmp FourthRemove
  36.  
  37. ThirdAdd:
  38. cmp dl, [ebp-01]
  39. jne FourthRemove
  40. add dl, 2 //U2
  41.  
  42. FourthRemove:
  43. mov cl, [ebp-02]
  44. mov [ebp-07], dl
  45. mov dl, [ebp-09]
  46. cmp dl, cl
  47. jne FourthAdd
  48. sub dl, 2 //V2
  49. jmp FifthRemove
  50.  
  51. FourthAdd:
  52. cmp dl, [ebp-03]
  53. jne FifthRemove
  54. add dl, 2 //V2
  55.  
  56. FifthRemove:
  57. mov cl, [ebp-04]
  58. mov [ebp-08], dl
  59. mov dl, [ebp-0A]
  60. cmp dl, cl
  61. jne FifthAdd
  62. sub dl, 2 //U3
  63. jmp SixthRemove
  64.  
  65. FifthAdd:
  66. cmp dl, [ebp-01]
  67. jne SixthRemove
  68. add dl, 2 //U3
  69.  
  70. SixthRemove:
  71. cmp bl, [ebp-02]
  72. jne SixthAdd
  73. sub bl,2 //V3
  74. JMP final
  75.  
  76. SixthAdd:
  77. cmp bl, [ebp-03]
  78. jne final
  79. add bl,2 //V3
  80.  
  81. final:
  82. JMP FF8_EN.exe+153D43
  83.  
  84. "FF8_EN.exe"+153CB1:
  85. JMP newmem
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top