changeset 312:2060219691fa

Added more to the rom map.
author Dylan Holmes <ocsenave@gmail.com>
date Sun, 01 Apr 2012 21:47:04 -0500
parents 8fa0f36140b4
children 363b650a77cc
files clojure/com/aurellem/gb/hxc.clj org/rom.org
diffstat 2 files changed, 28 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/gb/hxc.clj	Sun Apr 01 03:20:33 2012 -0500
     1.2 +++ b/clojure/com/aurellem/gb/hxc.clj	Sun Apr 01 21:47:04 2012 -0500
     1.3 @@ -440,7 +440,7 @@
     1.4    
     1.5  
     1.6  (defn hxc-machines
     1.7 -  "The hardcoded moves taught by TMs and HMs. List begins at ROM@0x1232D."
     1.8 +  "The hardcoded moves taught by TMs and HMs. List begins at ROM@1232D."
     1.9    ([] (hxc-machines
    1.10         com.aurellem.gb.gb-driver/original-rom))
    1.11    ([rom]
     2.1 --- a/org/rom.org	Sun Apr 01 03:20:33 2012 -0500
     2.2 +++ b/org/rom.org	Sun Apr 01 21:47:04 2012 -0500
     2.3 @@ -2,23 +2,47 @@
     2.4  #+author: Dylan Holmes
     2.5  #+email: rlm@mit.edu
     2.6  #+description:
     2.7 -#+keywords: simulated hearing, openal, clojure, jMonkeyEngine3, LWJGL, AI
     2.8 +#+keywords:
     2.9  #+SETUPFILE: ../../aurellem/org/setup.org
    2.10  #+INCLUDE: ../../aurellem/org/level-0.org
    2.11  #+BABEL: :exports both :noweb yes :cache no :mkdirp yes
    2.12  
    2.13 +
    2.14 +# pokedollar: U+20B1
    2.15  * Mapping the ROM
    2.16  
    2.17  | ROM address (hex) | Description     | Format          | Example         |
    2.18  |-------------------+-----------------+-----------------+-----------------|
    2.19  |                   | <15>            | <15>            | <15>            |
    2.20 -| 04495-            | Prices of items. | Each price is two bytes of binary-coded decimal. Prices are separated by zeroes. Priceless items[fn::Like the Pok\eacute{}dex and other unsellable items.] are given a price of zero. | The cost of lemonade is 0x03 0x80, which translates to a price of ₱350. |
    2.21 +| 0233C-            | Shop inventories. |                 |                 |
    2.22 +| 04495-            | Prices of items. | Each price is two bytes of binary-coded decimal. Prices are separated by zeroes. Priceless items[fn::Like the Pok\eacute{}dex and other unsellable items.] are given a price of zero. | The cost of lemonade is 0x03 0x50, which translates to a price of ₱350. |
    2.23  | 045B7-0491E       | Names of the items in memory. | Variable-length item names (strings of character codes). Names are separated by a single 0x80 character. | MASTER BALL#ULTRA BALL#... |
    2.24 +| 04D89-            | Lists of wild Pok\eacute{}mon to encounter in each region. | Each list contains ten Pokemon (ids) and their levels; twenty bytes in total. First, the level of the first Pokemon. Then the internal id of the first Pokemon. Next, the level of the second Pokemon, and so on. Since Pokemon cannot have level 0, the lists are separated by a pair 0 /X/, where /X/ is an apparently random Pokemon id. | The first list is (3 36 4 36 2 165 3 165 2 36 3 36 5 36 4 165 6 36 7 36 0 25), i.e. level 3 pidgey, level 4 pidgey, level 2 rattata, level 3 rattata, level 2 pidgey, level 3 pidgey, level 5 pidgey, level 4 rattata, level 6 pidgey, level 7 pidgey, level 0 end-of-list. |
    2.25  | 05EDB.            | Which Pok\eacute{}mon to show during Prof. Oak's introduction. | A single byte, the Pok\eacute{}mon's internal id. | In Pok\eacute{}mon Yellow, it shows Pikachu during the introduction; Pikachu's internal id is 0x54. |
    2.26 +| 06698-            | ? Background music. |                 |                 |
    2.27 +| 0822E-082F?       | Pointers to background music, part I. |                 |                 |
    2.28 +| 0CB95-            | Pointers to lists of wild pokemon to encounter in each region. These lists begin at 04D89, see above. | Each pointer is a low-byte, high-byte pair. | The first entry is 0x89 0x4D, corresponding to the address 0x4D89, the location of the first list of wild Pok\eacute{}mon (see above). |
    2.29 +| 1232D-            | Which moves are taught by the TMs and HMs |                 |                 |
    2.30  | 27D99-27DFF       | Names of the Pok\eacute{}mon types. | Variable-length type names (strings of character codes). Names are separated by a single 0x80 character. | NORMAL#FIGHTING#... |
    2.31 -| 38000-            | The basic properties and effects of moves. | Fixed-length (6 byte) continguous descriptions (no separating character): move-index, move-effect, power, move-type, accuracy, pp. |                 |
    2.32 +| 27E77-            | Trainer title names. |                 | YOUNGSTER#BUG CATCHER#LASS#... |
    2.33 +| 34000-            | Evolution and learnset data. |                 |                 |
    2.34 +| 38000-            | The basic properties and effects of moves. | Fixed-length (6 byte) continguous descriptions (no separating character): move-index, move-effect, power, move-type, accuracy, pp. | The entry for Pound, the first attack in the list, is (1 0 40 0 255 35). See below for more explanation. |
    2.35 +| 383DE-            | Species data for the Pokemon, listed in Pokedex order: Pokedex number; base moves; types; learnable TMs and HMs; base HP, attack, defense, speed, special; sprite data. |                 |                 |
    2.36  | 39462-            | The Pok\eacute{}mon cry data. | Fixed-length (3 byte) descriptions of cries. |                 |
    2.37 +| 3B1E5-            | Pointers to evolution/learnset data. |                 |                 |
    2.38  | 40687-            | Species data from the Pok\eacute{}dex: species name, height, weight, etc. | Fixed-length sequences of bytes. See below for specifics. |                 |
    2.39 +| 410B1-            | A conversion table between internal order and Pokedex order. |                 |                 |
    2.40 +| 71500-            | Names of places. |                 |                 |
    2.41 +| 7C249-7C2??       | Pointers to background music, pt II. |                 |                 |
    2.42 +| 98000-            | Dialogue        |                 |                 |
    2.43 +| B8000-            | The text of each Pokemon's Pok\eacute{}dex entry. |                 |                 |
    2.44 +| BC000-            | Move names.     |                 |                 |
    2.45  | E8000-E876C       | Names of the \ldquo{}190\rdquo{} species of Pok\eacute{}mon in memory. | Fixed length (10-letter) Pok\eacute{}mon names. Any extra space is padded with the character 0x80. The names are in \ldquo{}internal order\rdquo{}. | RHYDON####KANGASKHANNIDORAN♂#... |
    2.46  |                   |                 |                 |                 |
    2.47  |                   |                 |                 |                 |
    2.48 +
    2.49 +* Appendices
    2.50 +** Internal Pok\eacute{}mon IDs
    2.51 +** Type IDs
    2.52 +** Basic effects of moves
    2.53 +** Alphabet code