Commit Graph

1065 Commits

Author SHA1 Message Date
padz
3bae3a5313 make gbz80disasm easier to use externally 2012-12-14 02:47:13 -05:00
Bryan Bishop
9d68470e0f even better preprocessor formatting 2012-11-30 10:26:49 -06:00
Bryan Bishop
671e2b1289 md5 -> hashlib 2012-11-30 10:17:23 -06:00
Bryan Bishop
3d8e7a1776 make preprocessor includable as a module
The preprocessor only runs against stdin when __main__ is activated,
instead of always running on stdin. This allows the file to be included
in an interactive python session or in other scenarios.
2012-11-30 10:12:27 -06:00
Bryan Bishop
935384f931 update spacing for read_line in preprocessor 2012-11-30 10:04:56 -06:00
Bryan Bishop
44c3eb1ccf make the include macro check better
The include macro is now checked against only the beginning of the line,
and comments in the asm file can say "INCLUDE \"" if they need to. In
addition, the preprocessor now supports INCLUDE lines that are preceded
by a tab character. However, if this included file has multiple lines,
the output will not be automatically aligned with the initial tab. This
might cause problems with rgbasm.
2012-11-30 10:01:33 -06:00
Bryan Bishop
1e6f295573 more preprocessor comments 2012-11-30 09:58:57 -06:00
Bryan Bishop
9b4718d0c7 clean up formatting in preprocessor 2012-11-30 09:56:15 -06:00
Bryan Bishop
a1a9fa5560 move allowed_lengths for music macros out
This moves the allowed_lengths setting out of the preprocessor. Special
cases should not be hardcoded in the preprocessor.
2012-11-30 09:54:02 -06:00
Bryan Bishop
bdad293da3 Merge pull request #46 from yenatch/master
parse and dump music data
2012-11-30 07:49:19 -08:00
padz
5a8318788c get rid of defunct rgbasm macros 2012-11-30 06:03:04 -05:00
padz
041de2adf3 update music ptrs + labels and include music files 2012-11-30 05:59:13 -05:00
padz
3626ddebd1 implement music macros; INCLUDE injection in pre 2012-11-30 05:58:00 -05:00
padz
bfbb9b77e8 remove deprecated music files 2012-11-30 05:55:29 -05:00
padz
0dba59e490 parse and dump music data 2012-11-30 05:52:23 -05:00
Bryan Bishop
947bb5eeb2 Merge pull request #44 from yenatch/master
CheckSurfOW
2012-11-24 06:21:38 -08:00
padz
544f3f5c2f add surf checks and related functions 2012-11-24 02:01:05 -05:00
padz
c82557c934 more wram.asm typos 2012-11-24 02:00:26 -05:00
padz
147eb967e5 fix a typo in wram.asm 2012-11-23 23:03:01 -05:00
padz
66f40bf3c1 update constants used in scripts and battle engine 2012-11-23 22:11:55 -05:00
padz
e4cfbdc886 flesh out wram, fix unallocated labels 2012-11-23 21:19:02 -05:00
Bryan Bishop
8a5d12b730 Merge pull request #43 from iimarckus/master
trades
2012-11-19 08:16:02 -08:00
IIMarckus
0536f9f352 Add trade data. 2012-11-19 02:57:37 -07:00
padz
1b54f73323 play nice w/ cygwin; undeprecate used command 2012-11-15 02:33:02 -05:00
Bryan Bishop
0cce53bea3 Merge pull request #41 from yenatch/master
bank 3a and /music
2012-11-03 00:59:08 -07:00
padz
b7c788c654 move musicdata to files in /music, data removed fn 2012-11-03 03:25:08 -04:00
padz
22ac1dfaf0 disasm bank3a, map audio ram, implement musscripts 2012-11-03 00:45:14 -04:00
padz
95ac2a8da6 prep for next commit 2012-11-02 18:43:05 -04:00
IIMarckus
ef93cdf313 Improve labels for Elm’s lab. 2012-10-25 14:43:04 -06:00
Bryan Bishop
1795b9fbae Merge pull request #40 from yenatch/master
start on sound
2012-10-11 21:44:28 -07:00
padz
2369bd7ed2 add missing instruction 2012-10-11 23:12:42 -04:00
padz
5635c2027a start sfx disasm 2012-10-11 20:35:22 -04:00
Bryan Bishop
69c0125112 remove deprecated functions from crystal.py 2012-10-11 19:05:49 -05:00
Bryan Bishop
82f7e98306 get an address given a label 2012-10-11 18:52:54 -05:00
padz
811ea2071d add dn macro 2012-10-09 14:54:39 -04:00
padz
3383c45c27 fixed problems with wram.asm, compiles now 2012-10-09 04:43:45 -04:00
padz
5ba5a025c4 add breeding section to wram 2012-10-09 02:40:36 -04:00
padz
a7631774b4 start work on audio engine 2012-10-09 02:32:05 -04:00
padz
99b86cdd8f flesh out bittable2 2012-10-09 02:16:36 -04:00
Bryan Bishop
d7228d5b9f add comment-address for Functiona0a 2012-10-04 11:44:07 -05:00
Bryan Bishop
e124090961 Merge pull request #36 from kanzure/comment-cleaning
Clean up comments in extras/crystal.py
2012-10-01 11:19:30 -07:00
Bryan Bishop
e6c95e22c9 clean up comments in extras/crystal.py
This fixes the inconsistent comment formatting throughout the file.

There should be a space between the comment token and the comment
message, otherwise this file is less fun to read.
2012-10-01 13:11:52 -05:00
Bryan Bishop
667e0bf935 Merge pull request #31 from kanzure/formatting-fixes
This cleans up some whitespace that has been accumulating in main.asm lately.
2012-09-30 12:21:36 -07:00
Bryan Bishop
d6f17b9141 convert whitespace to tabs 2012-09-30 13:23:05 -05:00
Bryan Bishop
f7f7ed615e clean up whitespace 2012-09-30 13:21:29 -05:00
Bryan Bishop
6f878dc609 Merge pull request #30 from yenatch/master
compiles again
2012-09-26 12:48:44 -07:00
padz
399a5ab171 emergency fix 2012-09-26 15:43:48 -04:00
padz
ea897c2a37 fix last commit 2012-09-23 12:50:44 -04:00
padz
25a04a6838 add flag handling, implement dwb 2012-09-22 19:39:43 -04:00
padz
354685efd7 treemon and assorted minor changes 2012-09-22 19:27:57 -04:00