comparison clojure/com/aurellem/exp/notes.txt @ 332:5c2041d1cdda

solving problem with rival name becomming a key item.
author Robert McIntyre <rlm@mit.edu>
date Fri, 06 Apr 2012 13:52:08 -0500
parents ecff37d22293
children
comparison
equal deleted inserted replaced
331:6ec288064d49 332:5c2041d1cdda
1 ******** Game Sequence 1 ******** Game Sequence
2 2
3 start game 3 start game
4 4
5 name rival "L<PK>U<PK><PK><any-character>" 5 name rival "L<PK>U<PK><PK><any-character>"
6 (0x8B 0xE1 0x94 0xE1 0xE1 0x<any> in character codes) 6 (0x8B 0xE1 0x95 0xE1 0xE1 0x<any> in character codes)
7 7
8 get pikachu, fight rival, deliver oak's parcel, go back to 8 get pikachu, fight rival, deliver oak's parcel, go back to
9 viridian poke mart. 9 viridian poke mart.
10 10
11 Perform save corruption. 11 Perform save corruption.
35 [end repeat] 35 [end repeat]
36 36
37 ;; Second part of program to swap item ID and quantity at 37 ;; Second part of program to swap item ID and quantity at
38 ;; fixed address. 38 ;; fixed address.
39 39
40 0x00 ;; decrement HL
41 0x2B
42
40 0x00 ;; this starts at address 0xD56C 43 0x00 ;; this starts at address 0xD56C
41 0x2A ;; save (HL)=(target) to A, increment HL 44 0x2A ;; save (HL)=(target) to A, increment HL
42 45
43 0x00 46 0x00
44 0x47 ;; save A to B 47 0x47 ;; save A to B
56 0xC3 ;; first part of absolute jump 59 0xC3 ;; first part of absolute jump
57 60
58 burn-heal (0x0C) 61 burn-heal (0x0C)
59 x 95 (0x5F) -- address of Route 3 memory-function 62 x 95 (0x5F) -- address of Route 3 memory-function
60 63
61 [repeat the following 8 times] 64 [repeat the following 4 times]
62 0xFF 65 0xFF
63 0x01 66 0x01
64 [end repeat] 67 [end repeat]
65 68
66 ;; first part of item manipulation program 69 ;; first part of item manipulation program
135 0x8F "P" ; [x] 138 0x8F "P" ; [x]
136 0x90 "Q" ; [x] 139 0x90 "Q" ; [x]
137 0x91 "R" ; [x] 140 0x91 "R" ; [x]
138 0x92 "S" ; [x] 141 0x92 "S" ; [x]
139 0x93 "T" ; [good] 142 0x93 "T" ; [good]
140 0x94 "U" ; [good] 143 0x94 "U" ; [good] [key :(]
141 0x95 "V" ; [good] 144 0x95 "V" ; [good]
142 0x96 "W" ; [x] 145 0x96 "W" ; [x]
143 0x97 "X" ; [x] 146 0x97 "X" ; [x]
144 0x98 "Y" ; [key] 147 0x98 "Y" ; [key]
145 0x99 "Z" ; [x] 148 0x99 "Z" ; [x]