Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Have control of two adjacent provinces.
  2. Ruler is taking turn in Province 1.
  3.  
  4. First we need to somehow write a pointer to controller input ($006E) somewhere in the zero page, at an address no later than $64.
  5. For this example let's just say it's $64.
  6. This is because we are setting # of soldiers in order to point to controller input, but since 100 is the max we need to use an intermediate value.
  7.  
  8. Province 1 contains:
  9. - Ruler
  10. - Glitched officer whose "soldiers" value points to the "general" value of Province 2
  11. - $006E (initial copy of controller officer)
  12.  
  13. Process of writing values:
  14. 1. Set glitched officer's soldiers to the preset pointer. (2nd copy of controller officer)
  15. 2. Press controller input to destination address, then set resulting officer as governor.
  16. Province 2 will look like
  17. - Destination
  18. - $0064
  19. - $006E
  20. 3. Press controller input to the value to be written to the destination address then dismiss the controller input officer AND the pointer.
  21. Province 2 will go from
  22. -Destination
  23. -$0064
  24. -$006E
  25. -Value
  26.  
  27. to
  28.  
  29. -Destination
  30. -Value (value written to destination via linked list edit).
  31.  
  32. However the zero page pointer gets wiped each time we do this. So we have to have a way of rewriting this value each time?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement