Commit Graph

500 Commits

Author SHA1 Message Date
yenatch
a5cfb49dfa allow other files to import gfx.py
original-commit-id: e91f41dd3565cd4edfd71d0e3ee9744e99403443
2013-01-02 04:37:45 -05:00
yenatch
b3ebb0f873 make gfx.py more convenient from command line
original-commit-id: 3e953ad7b65f033cc5e29319f34cfd661b24af07
2013-01-01 16:31:05 -05:00
Bryan Bishop
78494c359e Merge pull request #51 from yenatch/master
Image compression/decompression.

original-commit-id: 98c1d9d09dce4d61a3d0331a731120686c11a02d
2012-12-31 20:10:43 -08:00
yenatch
d6678d25fb decompress all known gfx
original-commit-id: a3fe9c00d0c5d0e63c7e64a28d16010f43707d10
2012-12-31 22:53:40 -05:00
Bryan Bishop
99331db1d0 clean up whitespace
original-commit-id: da8b1e06e5c2866cf73f469f08835c658713ff41
2012-12-28 12:37:58 -06:00
Bryan Bishop
41e980acd2 Merge remote branch 'remotes/yenatch/master'
fixes #49

original-commit-id: 3b20ea29160760a85db9d84f61a92a957d14efb3
2012-12-23 02:57:21 -06:00
IIMarckus
e31127e33b specialphonecall takes a 16‐bit ID.
original-commit-id: 19ce6e7a748094f8f74b123c6b803808ed530d90
2012-12-17 21:00:41 -07:00
Bryan Bishop
4e65cb95c3 update gbz80disasm to not use $ff00+$ff syntax
original-commit-id: 531ccfb5f65bbbfa90e2a5c8493d9584dc2012be
2012-12-16 09:16:04 -06:00
padz
5db51c58f5 make gbz80disasm easier to use externally
original-commit-id: 3bae3a53135da32b30d5166d52a2e8e4117fc95e
2012-12-14 02:47:13 -05:00
Bryan Bishop
e15fcc4fd8 md5 -> hashlib
original-commit-id: 671e2b1289950586723078b3b29d14c9631ac140
2012-11-30 10:17:23 -06:00
Bryan Bishop
a21b183757 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.

original-commit-id: a1a9fa5560e01d97c7c33bbf8bb19fe4e76d3c28
2012-11-30 09:54:02 -06:00
padz
ff24a0d621 implement music macros; INCLUDE injection in pre
original-commit-id: 3626ddebd1dd7363c98b403ba1fe3c2d7dc598ee
2012-11-30 05:58:00 -05:00
padz
a95d500a02 play nice w/ cygwin; undeprecate used command
original-commit-id: 1b54f73323e98b59bfe238fa79a0f8d081d3e5d3
2012-11-15 02:33:02 -05:00
Bryan Bishop
786d4fb35d remove deprecated functions from crystal.py
original-commit-id: 69c012511242cda45d1e60014833823226583093
2012-10-11 19:05:49 -05:00
Bryan Bishop
28d0d7a995 get an address given a label
original-commit-id: 82f7e983068e723f99a1da85c5c36a560599abc3
2012-10-11 18:52:54 -05:00
Bryan Bishop
25ece07f34 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.

original-commit-id: e6c95e22c9a61b5a8817c7a5ae0fb235c01d722c
2012-10-01 13:11:52 -05:00
Bryan Bishop
756b886fe2 generate labels.json automagically in gbz80disasm
original-commit-id: e1ff7f98def8810aa61814eddcce6b96ae0bd643
2012-09-10 22:30:58 -05:00
Bryan Bishop
689a501e97 call load_asm in scan_for_predefined_labels
original-commit-id: d23972b7a3bf387ffa883fa0c8f2827b0b826e84
2012-09-10 22:30:58 -05:00
Bryan Bishop
7c58578bb8 Merge pull request #22 from iimarckus/decimal1
Decimal1

original-commit-id: 0c3ba03d373436c62f994f09b5bac74a5754cb6c
2012-07-08 23:25:49 -07:00
IIMarckus
b1eaaace49 Add some functions from Mobile Stadium.
original-commit-id: fa019d2f51893bc7772bde2ccad5ae3c07b51cf4
2012-07-07 19:51:02 -06:00
Bryan Bishop
107fc14663 use decimal output for givepoke in extras/crystal.py
original-commit-id: 6f8c3e5c3ea2edb80fddd2d17cf689fc1da39120
2012-07-05 10:25:33 -05:00
Bryan Bishop
2a0389e384 use os.path.join instead of cowboying it
original-commit-id: b85d9b86add29a64eec6a48f4a69054641213853
2012-07-01 08:55:21 -05:00
Bryan Bishop
bb3ffe4e13 make pokecrystal compatible with python2.6 by default
original-commit-id: 86cb61dbe8691bb04da02007996b008bd1fa3091
2012-07-01 08:48:27 -05:00
Bryan Bishop
9a75be4709 use extras/labels.json and not ./labels.json in romstr.py
original-commit-id: 58c696cfd3a024751d133ed9a9b6809b3a0ff36c
2012-07-01 08:44:20 -05:00
Bryan Bishop
efb4154d52 better graph-generating routines
original-commit-id: 85d26e31a5f209aa059250778ec79f762212825f
2012-07-01 08:41:38 -05:00
Bryan Bishop
fdbb67cb15 fix romstr for compiling (thanks pasky)
original-commit-id: fcf43b13dabed748eba1737770eeb9f5d55820c5
2012-07-01 08:41:14 -05:00
Bryan Bishop
0507c67bc8 graph.py - parse pokecrystal into a function graph for d3.js
original-commit-id: 3359121ba732f702fa3dbbc06357e3b5085a9067
2012-06-21 03:37:13 -05:00
Bryan Bishop
f18eff8cda continue at relative jumps and fix formatting
original-commit-id: e471fbeb3217107e94acca38213f8f9ffed98665
2012-06-20 21:13:24 -05:00
Bryan Bishop
82c79eccb6 use labels in the disassembler output
original-commit-id: 36eb6c726a73e5106dd2c2904f50a3ce134f1f32
2012-06-20 01:51:23 -05:00
Bryan Bishop
5bb62b042c load labels into the new disassembler
original-commit-id: 099295bb3d9edd7c3f9e3d4ed688c97098df7c7c
2012-06-20 01:42:48 -05:00
Bryan Bishop
b27e547509 more de-dependency-looping
original-commit-id: 1342ab67db4301563d317722d04fab9473411fda
2012-06-20 01:42:33 -05:00
Bryan Bishop
8fe39c647b move code around to avoid dependency loops
original-commit-id: ca07f1d64c0235b49160fc501553a70af8331d81
2012-06-20 01:13:15 -05:00
Bryan Bishop
b0ff2abc30 use romstr.py as the new disassembler
original-commit-id: e2babd69fb94781df54f2e4ded5efcc2aa7d0f8d
2012-06-19 23:59:49 -05:00
Bryan Bishop
c8c4a56cae asm output for the new disassembler
original-commit-id: 96596c6944562360c7cd16a2c4a9ea1948cb9870
2012-06-19 23:42:12 -05:00
Bryan Bishop
af3d9eb02f implement a formatted-with-labels version of the opcode line
original-commit-id: 96ca472fc922ef0d235a0c2e7104265de42893af
2012-06-19 22:54:20 -05:00
Bryan Bishop
cd6d6b9437 remove debug lines
original-commit-id: 9a4158462b45197631cc30b30bbbe31d900a38ec
2012-06-19 22:40:38 -05:00
Bryan Bishop
af92ca3e66 super duper disassembler fixes
original-commit-id: 132182e263f85e66c7cffebd0c8dc8d7e5b94e34
2012-06-19 22:12:52 -05:00
Bryan Bishop
e70274248e advance forward when disassembling the rom
original-commit-id: 4b7ca6934420fcac3c493cc82eddfe1b29b67a38
2012-06-14 21:54:25 -05:00
Bryan Bishop
d4233aa038 broken disassembler
original-commit-id: b19db1e6041d593f88a9fb935ca4cf152b39e34c
2012-06-10 22:55:05 -05:00
Bryan Bishop
dc5aed94e9 backtracking and labeling for the disassembler
original-commit-id: cd60a1f0e42773d82f8c2533b104e8dcc2f76d41
2012-06-10 18:26:18 -05:00
Bryan Bishop
71a06d372c somewhat improved disassembler
original-commit-id: 10a5a6518d709c92df04ce5938d5fedf2c6df685
2012-06-10 12:24:33 -05:00
Bryan Bishop
5727b4e9ac sleepy disassembling
original-commit-id: 3233cead330abefa6d9d266f5dd5de5b58622901
2012-06-07 01:37:55 -05:00
Bryan Bishop
3d231ef1a4 more awful code for the new disassembler
original-commit-id: 4ccfe27e4ad9d31ebe67e219f3cdd48f6ae6f699
2012-06-07 01:24:38 -05:00
Bryan Bishop
e91193e3ea almost complete new disassembler version
original-commit-id: 7dd0c86a6b6ebe03ed00dc7bd75d54d7b33db374
2012-06-07 01:07:48 -05:00
Bryan Bishop
96559874ad more cleaning
original-commit-id: 0768fead4fc4c0ff5b88637b02b5fb46484153df
2012-06-06 21:04:40 -05:00
Bryan Bishop
aced3df081 remove more code cruft
original-commit-id: c79db81d43ad6ba993cac3c6e6f0e3e6b6ef86b5
2012-06-06 21:00:30 -05:00
Bryan Bishop
095ecb39ef remove some code cruft from gbz80disasm
original-commit-id: 48b2237b820fdf0347ad65d31305eeffdea97696
2012-06-06 20:43:02 -05:00
Bryan Bishop
49477ae85c get RomStr from romstr.py in gbz80disasm
original-commit-id: 315edbe14bd630e3d4dbdbeb362fc9dacc0e358d
2012-06-06 20:26:02 -05:00
Bryan Bishop
88d1cd8197 make unittest2 error show up in stderr
original-commit-id: 914470651080df7cf0bf36e3fa45ed299dd694ec
2012-06-02 11:42:09 -05:00
Bryan Bishop
72b6a83754 temporarily disable label-usage (find_label) in gbz80disasm
original-commit-id: 376f65a4fd13eb1cdd3286d9edc2401539a4c896
2012-05-31 02:02:41 -05:00