changeset 182:f0c1e5574e81

finished mapping out pokemon memory region.
author Robert McIntyre <rlm@mit.edu>
date Thu, 22 Mar 2012 06:07:31 -0500
parents 4ea8ff49af87
children 531e1342ff56 426fce7e609d
files clojure/com/aurellem/exp/pokemon-layout clojure/com/aurellem/gb/items.clj clojure/com/aurellem/gb/pokemon.clj
diffstat 3 files changed, 20 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/exp/pokemon-layout	Thu Mar 22 02:02:07 2012 -0500
     1.2 +++ b/clojure/com/aurellem/exp/pokemon-layout	Thu Mar 22 06:07:31 2012 -0500
     1.3 @@ -9,11 +9,11 @@
     1.4  D16A                   Pokemon 1 Color Map
     1.5  D16B                   /h				  
     1.6  D16C                   \l Pokemon 1 Current Hit Points  
     1.7 -D16D                    				  
     1.8 +D16D                   Unused				  
     1.9  D16E                   Status				  
    1.10  D16F                   Type 1  (does not affect display)
    1.11  D170                   Type 2  (does not affect display)
    1.12 -D171                    				  
    1.13 +D171                   Scratch Area 				  
    1.14  D172                   Move 1 ID 			  
    1.15  D173                   Move 2 ID  			  
    1.16  D174                   Move 3 ID  			  
    1.17 @@ -53,11 +53,11 @@
    1.18  D196                   Pokemon 2 Color Map 
    1.19  D197                   /h
    1.20  D198                   \l Pokemon 2 Current Hit Points
    1.21 -D199                    
    1.22 +D199                   Unused 
    1.23  D19A                   Status				   
    1.24  D19B                   Type 1  (does not affect display) 
    1.25  D19C                   Type 2  (does not affect display) 
    1.26 -D19D                    
    1.27 +D19D                   Scratch Area 				   
    1.28  D19E                   Move 1 ID 
    1.29  D19F                   Move 2 ID  
    1.30  D1A0                   Move 3 ID  
    1.31 @@ -97,11 +97,11 @@
    1.32  D1C2                   Pokemon 3 Color Map 
    1.33  D1C3                   /h				   
    1.34  D1C4                   \l Pokemon 3 Current Hit Points  
    1.35 -D1C5                    				  
    1.36 +D1C5                   Unused 				  
    1.37  D1C6                   Status				  
    1.38  D1C7                   Type 1  (does not affect display)  
    1.39  D1C8                   Type 2  (does not affect display)	  
    1.40 -D1C9                    				  
    1.41 +D1C9                   Scratch Area 				   
    1.42  D1CA                   Move 1 ID 			  
    1.43  D1CB                   Move 2 ID  			  
    1.44  D1CC                   Move 3 ID  			  
    1.45 @@ -141,11 +141,11 @@
    1.46  D1EE                   Pokemon 4 Color Map
    1.47  D1EF                   /h				  
    1.48  D1F0                   \l Pokemon 4 Current Hit Points  
    1.49 -D1F1                    				  
    1.50 +D1F1                   Unused 				  
    1.51  D1F2                   Status				    
    1.52  D1F3                   Type 1  (does not affect display) 
    1.53  D1F4                   Type 2  (does not affect display)  
    1.54 -D1F5                    				  
    1.55 +D1F5                   Scratch Area 				    
    1.56  D1F6                   Move 1 ID 			  
    1.57  D1F7                   Move 2 ID  			  
    1.58  D1F8                   Move 3 ID  			  
    1.59 @@ -185,11 +185,11 @@
    1.60  D21A                   Pokemon 5 Color Map
    1.61  D21B                   /h				    
    1.62  D21C                   \l Pokemon 5 Current Hit Points      
    1.63 -D21D                    				    
    1.64 +D21D                   Unused 				    
    1.65  D21E                   Status				      
    1.66  D21F                   Type 1  (does not affect display)    
    1.67  D220                   Type 2  (does not affect display)	    
    1.68 -D221                    				    
    1.69 +D221                   Scratch Area 				      
    1.70  D222                   Move 1 ID 			    
    1.71  D223                   Move 2 ID  			    
    1.72  D224                   Move 3 ID  			    
    1.73 @@ -229,17 +229,17 @@
    1.74  D246                   Pokemon 6 Color Map 
    1.75  D247                   /h				    
    1.76  D248                   \l Pokemon 6 Current Hit Points      
    1.77 -D249                    				    
    1.78 +D249                   Unused 				    
    1.79  D24A                   Status				     
    1.80  D24B                   Type 1  (does not affect display)    
    1.81  D24C                   Type 2  (does not affect display)	    
    1.82 -D24D                    				    
    1.83 +D24D                   Scratch Area 				      
    1.84  D24E                   Move 1 ID 			    
    1.85  D24F                   Move 2 ID  			    
    1.86  D250                   Move 3 ID  			    
    1.87  D251                   Move 4 ID                            
    1.88 -D252                   /    Pokemon 6 OT ID		    
    1.89 -D253                   \				    
    1.90 +D252                   /h   Pokemon 6 OT ID		    
    1.91 +D253                   \l				    
    1.92  D254                   /h				     
    1.93  D255                   |m   Pokemon 6 Experience Points      
    1.94  D256                   \l				     
     2.1 --- a/clojure/com/aurellem/gb/items.clj	Thu Mar 22 02:02:07 2012 -0500
     2.2 +++ b/clojure/com/aurellem/gb/items.clj	Thu Mar 22 06:07:31 2012 -0500
     2.3 @@ -159,7 +159,8 @@
     2.4     0xFC :TM52     ;; "fly"	   
     2.5     0xFD :TM53     ;; "surf"	   
     2.6     0xFE :TM54     ;; "strength"      
     2.7 -   0xFF :end-of-list-sentinel))
     2.8 +   0xFF :end-of-list-sentinel ;; also "flash"
     2.9 +   ))
    2.10  
    2.11  (def item-name->item-code
    2.12    (zipmap (vals item-code->item-name)
     3.1 --- a/clojure/com/aurellem/gb/pokemon.clj	Thu Mar 22 02:02:07 2012 -0500
     3.2 +++ b/clojure/com/aurellem/gb/pokemon.clj	Thu Mar 22 06:07:31 2012 -0500
     3.3 @@ -94,11 +94,11 @@
     3.4    {0xD16A "Color Map"            ;; 0
     3.5     0xD16B "Current-HP (h)"       ;; 1
     3.6     0xD16C "Current-HP (l)"       ;; 2
     3.7 -   0XD16D unknown                ;; 3
     3.8 +   0XD16D "Unused"               ;; 3
     3.9     0xD16E "Status"               ;; 4
    3.10 -   0xD16F unknown                ;; 5
    3.11 -   0xD170 unknown                ;; 6
    3.12 -   0xD171 unknown                ;; 7
    3.13 +   0xD16F "Type 1"               ;; 5
    3.14 +   0xD170 "Type 2"               ;; 6
    3.15 +   0xD171 "scratch/C.R."         ;; 7
    3.16     0xD172 "Move 1 ID"            ;; 8
    3.17     0xD173 "Move 2 ID"            ;; 9
    3.18     0xD174 "Move 3 ID"            ;; 10