# HG changeset patch # User Robert McIntyre # Date 1332660914 18000 # Node ID 7984a084aa072cc8b81146a0d3b08140b633ca21 # Parent 25022f3c6607080134613c0466c01aa60fac73ad still working on overall stragety... going to sleep on it. diff -r 25022f3c6607 -r 7984a084aa07 clojure/com/aurellem/exp/notes.txt --- a/clojure/com/aurellem/exp/notes.txt Sun Mar 25 01:53:29 2012 -0500 +++ b/clojure/com/aurellem/exp/notes.txt Sun Mar 25 02:35:14 2012 -0500 @@ -16,57 +16,41 @@ move one of the other items that wasn't destroyed (but not burn-heal) to the money counter to get a bunch of money. -buy 94 more burn heals. 95 burn heals spells out the +buy 95 more burn heals. 95 burn heals spells out the address that will safely return control to the pokemon kernel. -deposit the cancel item one at a time into the item computer -35 times. - -deposit 95 burn heals into item computer. This establishes -the return point for the program so it doesn't crash the game. - -throw away the second character of rival's name until it is -equal to D5. Now the first two characters of rival's name -spell out the start point of the program that will be -constructed in the item computer. - -throw away the fourth and sixth characters of rival's name -until it they are equal to D5. The (thrid and fourth) and -characters of rival's name now spell out the target item -which we will manipulate in the item computer. - -toss the zero items past the map data in item memory to -spell the following assembly (using underflow) and combine -with rival's name like so +[repeat following 35 times] +0x00 +0x01 0x00 -0xFA -- first part of "Load A from Literal address" +0xFA -- first part of "Load A from Literal address" third rival's name character -fourth rival's name character -- target item address +xD5 -- target item address 0x00 -0x3C -- increment A register +0x3C -- increment A register 0x00 -0xEA -- first part of "Save A to literal address" +0xEA -- first part of "Save A to literal address" fifth rival's name character -fourth rival's name character -- target item address +xD5 -- target item address 0x00 -0xC3 -- first part of "Absolute Jump to literal address" +0xC3 -- first part of "Absolute Jump to literal address" burn-heal -x 95 -- address of Route 3 memory-function +x 95 -- address of Route 3 memory-function +0x00 +0x?? shift rival's name's first two characters into mem-function-address. - - now close the menu and continue item manipulations using the newly constructed program. Starting and then canceling the start menu activates the program.