Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Have control of two adjacent provinces.
- Ruler is taking turn in Province 1.
- First we need to somehow write a pointer to controller input ($006E) somewhere in the zero page, at an address no later than $64.
- For this example let's just say it's $64.
- 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.
- Province 1 contains:
- - Ruler
- - Glitched officer whose "soldiers" value points to the "general" value of Province 2
- - $006E (initial copy of controller officer)
- Process of writing values:
- 1. Set glitched officer's soldiers to the preset pointer. (2nd copy of controller officer)
- 2. Press controller input to destination address, then set resulting officer as governor.
- Province 2 will look like
- - Destination
- - $0064
- - $006E
- 3. Press controller input to the value to be written to the destination address then dismiss the controller input officer AND the pointer.
- Province 2 will go from
- -Destination
- -$0064
- -$006E
- -Value
- to
- -Destination
- -Value (value written to destination via linked list edit).
- 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