Commit Graph

392 Commits

Author SHA1 Message Date
Bryan Bishop
78fb1059bb fix readme typo
original-commit-id: 0406a12fdfaaa860336ad2bffb2411357dcd0448
2012-05-02 01:39:01 -05:00
Bryan Bishop
36e44c52ea basic README to explain crystal.py
original-commit-id: 6fa7fbc357722bccbfe5d2756f1d4b6821b2e476
2012-05-02 01:38:19 -05:00
Bryan Bishop
226a499414 move the text command classes around
original-commit-id: 81208d51a078247fa0f83ee649932e1c9025e3e1
2012-05-01 11:25:05 -05:00
Bryan Bishop
e64f4eda58 basic TextCommand skeleton from yesterday
original-commit-id: 37e808b43a54046c1f56313261a8f9bacc6b7427
2012-04-30 02:21:43 -05:00
Bryan Bishop
a4b53ae3c4 begin to rewrite the text parser
original-commit-id: 9189b3f6e02296e5dac76641543db92f59e720cc
2012-04-29 15:15:48 -05:00
Bryan Bishop
af8ceefd76 clean up comments in Script.parse method
original-commit-id: 6eb1478f1b89eea93744ac67cd2d198d951ac9ca
2012-04-29 10:40:34 -05:00
Bryan Bishop
bcaf73c046 remove old comment
original-commit-id: a06cb374ef12552ffd2404eac561c5eb1810b324
2012-04-29 10:26:27 -05:00
Bryan Bishop
e2cfea3598 temporary fix to prevent TextScript from appending @s
original-commit-id: d4508d9beda76be00c79296e88129a5dcfd908d2
2012-04-28 11:08:05 -05:00
Bryan Bishop
e112ac9898 top-level dependency bug fix.. actual problem not solved ?
original-commit-id: ef56a46e8118d7532721516635b9fb2c8085d2ff
2012-04-28 01:34:20 -05:00
Bryan Bishop
7cdec46427 still having trouble with UnknownText_0x580c7 not in main.asm
original-commit-id: 94e486be8983dfea18cb97b767447e0c2a551877
2012-04-27 18:50:13 -05:00
Bryan Bishop
86cb81a9d5 TextPointerLabelParam sometimes doesn't point to anything useful
original-commit-id: 90cee9191e01720656819eef906fb5053108e606
2012-04-27 17:38:49 -05:00
Bryan Bishop
ed02842315 TextPointerLabelParam.get_dependencies() now returns the text pointer
original-commit-id: 6321bf121f0afc5a16a510e08c688bcb6bf5ab15
2012-04-27 17:35:06 -05:00
Bryan Bishop
4d06e74973 words/pointers should point within bank
original-commit-id: 94a6e1b0ccb531474e662a522940241a785b4739
2012-04-27 17:16:45 -05:00
Bryan Bishop
9160959451 fix MoneyByteParam formatting
original-commit-id: d9a2680c71f06bd4c9134b02b1aaaa0286c0567c
2012-04-27 16:48:25 -05:00
Bryan Bishop
368b3b843d possibly fix preprocessor/checkmoney issues
original-commit-id: 45c41795f517f420bc0b6cef4d061f767d90915c
2012-04-27 16:33:37 -05:00
Bryan Bishop
a309c6d9ac reverse byte output in RAMAddressParam.to_asm()
original-commit-id: 14a35baa3fdc794c3a4f037530554768926e6465
2012-04-27 16:04:16 -05:00
Bryan Bishop
d1c933696b redo item constants (some were missed?)
original-commit-id: 09a0e3aa85b22769a959e8c5b6abec38d2d770b2
2012-04-27 15:52:57 -05:00
Bryan Bishop
02ce32f563 add newlines to generate_item_constants output
original-commit-id: b0eee4c06b5d84161da04a4eb9cb05f53a8d3655
2012-04-27 15:47:51 -05:00
Bryan Bishop
22e7806635 fix RAMAddressParam.to_asm() (no [] characters)
original-commit-id: 9672e960ee6822fd4cb7488412635c85751a1c3d
2012-04-27 15:39:41 -05:00
Bryan Bishop
322442b3d6 fix label lookup
original-commit-id: d319aea119145ecb03cc28f5877c2d9393944965
2012-04-27 15:33:37 -05:00
Bryan Bishop
a7d0c22860 minor fixes for insert_single_with_dependencies
original-commit-id: 9ed1a474d08569654e1136836cf2ecea4d5c5ad0
2012-04-27 15:02:53 -05:00
Bryan Bishop
06463be369 prevent dependency loops in script at 0x18d0a9, 0x18d023 and 0x943ca
original-commit-id: a58aeae5cc5c2efeb321e4ac47edeadebaa04e94
2012-04-27 14:58:57 -05:00
Bryan Bishop
05e1ff323e better debugging for a max recursion depth error
original-commit-id: 9e92ebd40b6880ac41c639824aaa389592297dab
2012-04-27 13:58:02 -05:00
Bryan Bishop
41575878c1 pass 'recompute' parameter through get_dependencies() calls
original-commit-id: 7ed1bebc01b9c5e31713f5bc65dec45c66b2c31d
2012-04-27 13:46:57 -05:00
Bryan Bishop
29c48e02fd prevent dependencies from being recomputed
original-commit-id: 39a71c55c7dbfe2147f5ce4016c062be8a08ff1f
2012-04-27 13:41:44 -05:00
Bryan Bishop
c6ac50a633 faster get_dependencies on Script
original-commit-id: ce35b436ed2a8317bd02e931de03cb5ab356ded5
2012-04-27 13:29:41 -05:00
Bryan Bishop
f1aa58eabc checkmonkey -> checkmoney
original-commit-id: 34ff5fc4cecc782f909c86084b6b4a1fa71cbd43
2012-04-27 01:07:30 -05:00
Bryan Bishop
23117cb35a speed up asm insertion
original-commit-id: 1098757c4af82380ef0cadeaf7e37ad0186e76b6
2012-04-27 01:06:31 -05:00
Bryan Bishop
1682a95f57 Asm.insert_multiple_with_dependencies
original-commit-id: 226e964f1d2251b9fdab1fa54262ad81e6d39599
2012-04-27 00:59:05 -05:00
Bryan Bishop
847531c985 caught a self.label -> self.label.name
original-commit-id: bde9cb3b5731e82aa7b694c0005d12f053dc9e06
2012-04-26 18:45:53 -05:00
Bryan Bishop
9a2408a864 refactor all labels to be Label instances
original-commit-id: ddbfc016c1e3e1acd8ba291ccedfb16d3a3c48fb
2012-04-26 18:41:13 -05:00
Bryan Bishop
46ddc5995d refactoring some labels code
original-commit-id: ea2daf05ee5012e40d310752ca105a8ce6cf132f
2012-04-26 18:04:20 -05:00
Bryan Bishop
40d2dc632d start to write the Label class and is_label_in_asm
original-commit-id: 16b8cf491f577a9cf80107fa972ae35739ee4039
2012-04-26 17:41:37 -05:00
Bryan Bishop
35cb2c4f8b rename textpre.py -> preprocessor.py
original-commit-id: 849c0d132d9a9a9b2414d5914f41a83820be8b11
2012-04-26 16:58:20 -05:00
Bryan Bishop
53a9867201 make jumptextfaceplayer point to text
original-commit-id: 092baabdd4555d7147559c2b989133c63a45fb31
2012-04-26 16:50:52 -05:00
Bryan Bishop
38efef76a5 continue to fix off-by-one error in TextScript
original-commit-id: 8cc5597b0bdf29c4d76be26a5879a53d4f65c308
2012-04-26 15:04:09 -05:00
Bryan Bishop
3e6944344d fix off-by-one error in TextScript
original-commit-id: 806687bf690f8cd50cbf0bd3b1502fea36656a02
2012-04-26 14:59:24 -05:00
Bryan Bishop
8b46073c58 revert to dbw in MapScriptHeader.to_asm()
original-commit-id: d37f9869712ded6feed36537932c75255a3665ae
2012-04-26 14:46:46 -05:00
Bryan Bishop
16a55de2c8 revert '_' prefix to some macro_names
original-commit-id: 386a688eca4098723e6e8460257433064cdd86ee
2012-04-26 14:37:09 -05:00
Bryan Bishop
28a40fac1e revert PeopleEvent to use better-looking asm output
original-commit-id: 3c8b381489f074b2223359bd0d11ea8644a35dc7
2012-04-26 14:30:30 -05:00
Bryan Bishop
712b7a57ac add two filler bytes to MapEventHeader asm output
original-commit-id: 6c5b5d2b5771b3a4ddade9325c509bccb0c38c22
2012-04-26 14:26:16 -05:00
Bryan Bishop
98d72a999f gah forgot a file to let preprocessor import macros
original-commit-id: 70cf2554a17b604c5e65fd86ebaeb5d206839baa
2012-04-26 14:16:01 -05:00
Bryan Bishop
ec5265e2e6 add map/group constants into constants.asm
map 18.3 and 7.14 are both "Route 10" ? Need to confirm that they are
both, in fact, "Route 10". Even if they both point to the same map, we
can call them 10a and 10b so that the map constants will work.

generate_map_constants and generate_map_constant_labels have been
updated to deal with left-over issues in various labels and obscure
characters.

original-commit-id: 8f2221aa703b3ed0d98003a055c65ea794144b64
2012-04-26 14:13:06 -05:00
Bryan Bishop
74292fa922 add DataByteWordMacro for the preprocessor
original-commit-id: 8f2afd2f7c00bec87fdd33bb7745505a13d39c2e
2012-04-26 14:00:55 -05:00
Bryan Bishop
f6ec80e24e add param_types to Signpost
original-commit-id: d09cf6d950ce3ba015c3ac4f74dda68d2b8c0f87
2012-04-26 13:55:55 -05:00
Bryan Bishop
fa0b8571c6 change Signpost to extend Command and set byte_type in a few places
original-commit-id: 1bba364ba63a347a5188b21b267a66738fa11ff7
2012-04-26 13:13:24 -05:00
Bryan Bishop
084074fe8f return to using warp_def, signpost, person_event macros
original-commit-id: a720875a84c1ae89237ca2a0b075accb2c10e83c
2012-04-26 10:27:46 -05:00
Bryan Bishop
306e47f9de probably a bad idea - don't use macros inside event headers
original-commit-id: 69783a6a69046dba97ad98b41448dfd6702699fb
2012-04-26 01:07:04 -05:00
Bryan Bishop
4742425068 don't delete tempt_opt_table in gbz80disasm
original-commit-id: ece37237e3960bce6e72c6c97f1a4479dd6536aa
2012-04-26 00:32:38 -05:00
Bryan Bishop
dc5ed571f0 simple lexer
original-commit-id: ad76f259ff28b719b353581a654b4918f8ebb3b7
2012-04-26 00:31:53 -05:00