Advertisement
andr2535

GSC Jump from box names to pc items

Mar 20th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. Crystal's pc first item has location D8F2
  2.  
  3. We want some compare instruction to make certain that we can still use the other method, for now.
  4. ([id]tmp xx) is used for instructions that will be changed by the code itself, where xx is what we will change to.
  5. we can edit from fb7f to fbb9
  6. [1] = FB88
  7.  
  8. 1st
  9. 1 - xor a - AF // A = 0
  10. 2-3 - or a, D0 - F6 D0 // A = D0
  11. 4-5 - or a, 88 - F6 88 // A = D8
  12. 6-8 - ld ([2]), A - EA 89 FB // Write A to [2]
  13. 9 - ld D,B // (forced endline)
  14. 2nd
  15. 1 - xor a - AF // A = 0
  16. 2-3 - or a, D2 - F6 D2 // A = D2
  17. 4-5 - or a, E2 - F6 E2 // A = F2
  18. 6-8 - ld ([1]), A - EA 88 FB // Write A to [1]
  19. 9 - ld D,B // (forced endline)
  20. 3rd
  21. 1-3 - JP NC, ([1]tmp F2)([2]tmp D8) - D2 XX XX // Jump to hopefully D8F2
  22. 4 - ld D,B // endline
  23.  
  24. // Converted to pokémon letters.
  25. p0'd0IéJ5
  26. p0'm0(mn)éI5
  27. 'm55
  28.  
  29. //you only need to use a regular return from the items.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement