# HG changeset patch # User Dylan Holmes # Date 1332631276 18000 # Node ID 00e4efa7c1040ece15fdd4f07aa5777791b654b5 # Parent 49a709c555f2f9e2787df5e8334b6181aef69ab4 saving progress... diff -r 49a709c555f2 -r 00e4efa7c104 clojure/com/aurellem/gb/characters.clj --- a/clojure/com/aurellem/gb/characters.clj Sat Mar 24 16:19:43 2012 -0500 +++ b/clojure/com/aurellem/gb/characters.clj Sat Mar 24 18:21:16 2012 -0500 @@ -20,6 +20,44 @@ }) + + +(def meta-characters + {0x00 "non-meta text follows" + 0x01 "load text from RAM (nn)" + 0x02 "BCD number (nn)C" ;; C is 3 flags and 5 length bits." + 0x03 "store text in RAM (nn)" + 0x04 "draw box (nn)WH" + 0x05 "BEGIN text on textbox line 2" + 0x06 "wait for A or B" + 0x07 "scrolling text" + 0x08 "BEGIN routine" + 0x09 "load RAM (nn) hex-to-dec. (nn)BC. B is bytes to read, C is + digits to display" + 0x0A "wait 30 vblanks iff you pressed A or B" + + 0x0B "sound: got item" + 0x0E "sound: learned skill" + 0x0F "sound: got rarecandy" ;; incidentally, same as 'got item' + 0x10 "sound: caught pokemon!" + 0x11 "sound: gave OAK the parcel" + 0x12 "sound: same as 0x10???" + 0x13 "sound: new data added" + 0x14 "sound: cry-nidorina" + 0x15 "sound: cry-pidgeot" + 0x16 "sound: cry-dewgong" + + 0x4E "new line" + 0x51 "new page" + 0x55 "scroll page" + 0x50 "END command" ;; the pair 0x50 0x50 ?? + 0x57 "END command" + 0x58 "END after you press A or B" + }) + + + + (def end-of-name-sentinel 0x00) (def character-code->character