# HG changeset patch # User Robert McIntyre # Date 1332414451 18000 # Node ID f0c1e5574e810216997fd34ece7b7ad9aef4f401 # Parent 4ea8ff49af8756df74eb5debae8a268519b0c3b5 finished mapping out pokemon memory region. diff -r 4ea8ff49af87 -r f0c1e5574e81 clojure/com/aurellem/exp/pokemon-layout --- a/clojure/com/aurellem/exp/pokemon-layout Thu Mar 22 02:02:07 2012 -0500 +++ b/clojure/com/aurellem/exp/pokemon-layout Thu Mar 22 06:07:31 2012 -0500 @@ -9,11 +9,11 @@ D16A Pokemon 1 Color Map D16B /h D16C \l Pokemon 1 Current Hit Points -D16D +D16D Unused D16E Status D16F Type 1 (does not affect display) D170 Type 2 (does not affect display) -D171 +D171 Scratch Area D172 Move 1 ID D173 Move 2 ID D174 Move 3 ID @@ -53,11 +53,11 @@ D196 Pokemon 2 Color Map D197 /h D198 \l Pokemon 2 Current Hit Points -D199 +D199 Unused D19A Status D19B Type 1 (does not affect display) D19C Type 2 (does not affect display) -D19D +D19D Scratch Area D19E Move 1 ID D19F Move 2 ID D1A0 Move 3 ID @@ -97,11 +97,11 @@ D1C2 Pokemon 3 Color Map D1C3 /h D1C4 \l Pokemon 3 Current Hit Points -D1C5 +D1C5 Unused D1C6 Status D1C7 Type 1 (does not affect display) D1C8 Type 2 (does not affect display) -D1C9 +D1C9 Scratch Area D1CA Move 1 ID D1CB Move 2 ID D1CC Move 3 ID @@ -141,11 +141,11 @@ D1EE Pokemon 4 Color Map D1EF /h D1F0 \l Pokemon 4 Current Hit Points -D1F1 +D1F1 Unused D1F2 Status D1F3 Type 1 (does not affect display) D1F4 Type 2 (does not affect display) -D1F5 +D1F5 Scratch Area D1F6 Move 1 ID D1F7 Move 2 ID D1F8 Move 3 ID @@ -185,11 +185,11 @@ D21A Pokemon 5 Color Map D21B /h D21C \l Pokemon 5 Current Hit Points -D21D +D21D Unused D21E Status D21F Type 1 (does not affect display) D220 Type 2 (does not affect display) -D221 +D221 Scratch Area D222 Move 1 ID D223 Move 2 ID D224 Move 3 ID @@ -229,17 +229,17 @@ D246 Pokemon 6 Color Map D247 /h D248 \l Pokemon 6 Current Hit Points -D249 +D249 Unused D24A Status D24B Type 1 (does not affect display) D24C Type 2 (does not affect display) -D24D +D24D Scratch Area D24E Move 1 ID D24F Move 2 ID D250 Move 3 ID D251 Move 4 ID -D252 / Pokemon 6 OT ID -D253 \ +D252 /h Pokemon 6 OT ID +D253 \l D254 /h D255 |m Pokemon 6 Experience Points D256 \l diff -r 4ea8ff49af87 -r f0c1e5574e81 clojure/com/aurellem/gb/items.clj --- a/clojure/com/aurellem/gb/items.clj Thu Mar 22 02:02:07 2012 -0500 +++ b/clojure/com/aurellem/gb/items.clj Thu Mar 22 06:07:31 2012 -0500 @@ -159,7 +159,8 @@ 0xFC :TM52 ;; "fly" 0xFD :TM53 ;; "surf" 0xFE :TM54 ;; "strength" - 0xFF :end-of-list-sentinel)) + 0xFF :end-of-list-sentinel ;; also "flash" + )) (def item-name->item-code (zipmap (vals item-code->item-name) diff -r 4ea8ff49af87 -r f0c1e5574e81 clojure/com/aurellem/gb/pokemon.clj --- a/clojure/com/aurellem/gb/pokemon.clj Thu Mar 22 02:02:07 2012 -0500 +++ b/clojure/com/aurellem/gb/pokemon.clj Thu Mar 22 06:07:31 2012 -0500 @@ -94,11 +94,11 @@ {0xD16A "Color Map" ;; 0 0xD16B "Current-HP (h)" ;; 1 0xD16C "Current-HP (l)" ;; 2 - 0XD16D unknown ;; 3 + 0XD16D "Unused" ;; 3 0xD16E "Status" ;; 4 - 0xD16F unknown ;; 5 - 0xD170 unknown ;; 6 - 0xD171 unknown ;; 7 + 0xD16F "Type 1" ;; 5 + 0xD170 "Type 2" ;; 6 + 0xD171 "scratch/C.R." ;; 7 0xD172 "Move 1 ID" ;; 8 0xD173 "Move 2 ID" ;; 9 0xD174 "Move 3 ID" ;; 10