Commit Graph

608 Commits

Author SHA1 Message Date
Bryan Bishop
28490230cf make a basic python module 2013-08-03 16:10:52 -05:00
Bryan Bishop
a14c36eadb ignore python/egg output 2013-08-03 15:55:34 -05:00
Bryan Bishop
4bc7d85036 write some TODO comments in wram.py 2013-08-03 15:21:36 -05:00
Bryan Bishop
ed2949c31d add mock into requirements.txt
(for unit testing)
2013-08-03 15:16:27 -05:00
Bryan Bishop
f6b13962f6 combine hram/gbhw readers into read_constants
This consolidates read_hram_constants and read_gbhw_constants.
2013-08-03 15:12:45 -05:00
Bryan Bishop
860829c2b1 make read_gbhw_constants consume an IOError 2013-08-03 15:08:08 -05:00
Bryan Bishop
b94bbf92ba make read_hram_constants to eat hram.asm IOError 2013-08-03 15:05:17 -05:00
Bryan Bishop
1bdb15456e fix the bss/wram section default
The default section needs to include a list of labels (even if the list
is empty) because downstream code assumes that the section contains a
key called "labels" that has a value associated with a list.
2013-08-03 14:55:58 -05:00
Bryan Bishop
2bbe5da4b6 ignore wram.asm non-existence
The IOError is now caught and swallowed by read_wram_sections.
2013-08-03 14:53:42 -05:00
Bryan Bishop
f17090f319 remove extra newlines from python files
Remove all of the ending newlines at the end of the file, since this is
apparently against pep8.
2013-08-03 14:41:27 -05:00
Bryan Bishop
7ea430ac9a a requirements.txt to specify python dependencies
This is taken straight from the pokecrystal.git repo.
2013-08-03 14:36:36 -05:00
Bryan Bishop
162b3eab0e Merge branch 'fix-tabs' into master 2013-08-03 14:07:06 -05:00
Bryan Bishop
e707c064f8 remove dangling whitespace in source code files 2013-08-03 14:04:13 -05:00
Bryan Bishop
fc931b7f27 tabs to spaces in crystal.py
This was just the move effects list.
2013-08-03 14:02:35 -05:00
Bryan Bishop
a49e8b58ae tabs to spaces in sym.py 2013-08-03 14:01:29 -05:00
Bryan Bishop
13dfbba8d2 make a docstring for wram.py 2013-08-03 13:23:04 -05:00
Bryan Bishop
9dc552e46c remove dangling whitespace in wram.py 2013-08-03 12:25:25 -05:00
Bryan Bishop
7ee0269e23 normalize tabs to whitespace in wram.py 2013-08-03 12:25:02 -05:00
Bryan Bishop
6824783300 remove trailing newline from wram.py 2013-08-03 12:24:42 -05:00
Bryan Bishop
bc3502dc1f fix path handling in wram.py
Otherwise pokecrystal doesn't compile anymore. This is because of how
wram.asm, hram.asm and other files are parsed.
2013-08-03 12:23:59 -05:00
Bryan Bishop
21113e1852 fix the *.json rule in .gitignore 2013-08-03 12:23:08 -05:00
Bryan Bishop
ea42b05085 remove sgm/sav cruft from .gitignore 2013-08-03 12:22:31 -05:00
Bryan Bishop
dcd10de877 update png.py .gitignore reference 2013-08-03 12:20:56 -05:00
Bryan Bishop
21763b8315 use .gitignore from pokecrystal
This is the .gitignore from commit 1c3ebf95 in the pokecrystal.git
repository.
2013-08-03 12:18:26 -05:00
Bryan Bishop
4172c0c812 Merge pull request #157 from yenatch/overworld
overworld loop and movement

original-commit-id: bb8990dc3cb19787e08c29409cfc674e2478fbc9
2013-07-12 19:16:49 -07:00
Bryan Bishop
1bb9b7757c Merge pull request #158 from yenatch/gbz80disasm-more-data
gbz80disasm bugfixes

original-commit-id: 226729d1750bc6ee0c45d96e3f6b7dcf0844a609
2013-07-11 09:01:02 -07:00
yenatch
83e47ef0fa crystal: add more movements
original-commit-id: e7a7fcc92446134d47bbfb0b308c4decc2a2adf8
2013-07-10 19:17:03 -04:00
yenatch
9cbd1b0175 chars: ▷
original-commit-id: d3872d1aa94a2ae6294f7cce3584f4d0aaa16fcb
2013-07-10 19:17:02 -04:00
yenatch
f2717519a8 wram.py: allow space definitions using constants
original-commit-id: 6765083c1cb39a93f2b0fb60a7c203725360492d
2013-07-10 19:12:48 -04:00
yenatch
101c57b58d labels: hex is case-insensitive
original-commit-id: 341e11cccb33a8ed459cd9a6c41cf1189c6a4550
2013-07-10 19:12:48 -04:00
yenatch
936c80e75e use wram from outside extras
original-commit-id: ba5cd8bbb8b96a080e9a6fe1b1525cd5381fdb24
2013-07-10 19:12:48 -04:00
yenatch
5ee3ead5fa crystal: wram label finding
original-commit-id: daf3930984690e8ce44b375dda35a9d725c0c1d2
2013-06-28 21:49:50 -04:00
yenatch
3c2125a7fc crystal: 2pt script commands are for wram
original-commit-id: 17b5e86311e5dae4609818d6e1d63d23bc6815fa
2013-06-28 21:35:44 -04:00
yenatch
42cdc63dff crystal: PointerLabelToScriptPointer bank is not reversed
original-commit-id: 622d6b86f71f29f6a03df7cef7e825ee84260ea9
2013-06-28 21:17:35 -04:00
yenatch
8ae5e00188 gbz80disasm: don't read data where there is none
original-commit-id: fee0f0d6a4ab194f8aa1ecc1a886cbca22052c6b
2013-06-28 16:06:39 -04:00
yenatch
dbaaef11fb gbz80disasm: only track rom addresses for data
original-commit-id: 3a1f843e783a7a654ccd7e72f5e3fa4a40ea4009
2013-06-28 00:10:38 -04:00
yenatch
117c433dc2 gbz80disasm: use existing labels as addresses
original-commit-id: fe4b13e304decc48af0918fce281ed588f867a72
2013-06-27 22:28:53 -04:00
Bryan Bishop
642fb1c7a2 Merge branch 'github/master' into master.
Conflicts:
	extras/gbz80disasm.py

Comments.

original-commit-id: ff11134023e1a3df28edbf5c8f1638ec369d919a
2013-06-25 23:54:39 -05:00
Bryan Bishop
4c28c1d6f3 remove extra whitespace in extras/vba.py
original-commit-id: 28268df40e91e48637862a4428b01d5abae2ff0f
2013-06-25 23:23:46 -05:00
Bryan Bishop
a293f66667 remove extra whitespace in extras/gfx.py
original-commit-id: aade38c733d0060be623525e50d2b24e718c7bee
2013-06-25 23:01:52 -05:00
Bryan Bishop
c2c7cd3818 fix function formatting in extras/gfx.py
original-commit-id: cc1add094f3cbbbb281d892828ffd1dd6f29f7af
2013-06-25 23:01:00 -05:00
Bryan Bishop
c805f6ac35 Merge pull request #153 from yenatch/gbz80disasm-data
data detection in gbz80disasm

original-commit-id: fbf561cfa52ca3c8b0b9f157482e0b33052248ef
2013-06-25 20:32:52 -07:00
yenatch
2d1212ecf1 gbz80disasm: just use lowercase labels
original-commit-id: 2896cb93d48f6b4fb759c37753db7095d4e69ffd
2013-06-25 04:04:19 -04:00
yenatch
99b42da150 gbz80disasm: fix data handling
get the scalpel out of there

original-commit-id: 91f7c123f4a54beddf8c9de0f8a10195ad3d7667
2013-06-25 03:57:49 -04:00
yenatch
fa0ee277df gbz80disasm: local/global address conversion + fix find_label
original-commit-id: 6630406043cda9e4ab36f8477c62025249b647d6
2013-06-25 03:55:38 -04:00
yenatch
b7978e23d2 gbz80disasm: detect data tables referenced in asm
original-commit-id: 7804dedce469cd40efbc140b80d84733ec853338
2013-06-25 03:43:58 -04:00
yenatch
57cb48ee11 gbz80disasm: data detection
the is_data flag never did anything. now it does

encountering the end of a branch with outstanding labels will read anything between said labels as data

original-commit-id: e199aaa8fd73d932e81ef339f4f826cf95a700b9
2013-06-25 03:24:38 -04:00
Kat Harrison
b18fcdc531 fixed another indent in gfx.py
original-commit-id: 72fbe86c7aee557282322666c1c3a25fbe964b0b
2013-06-23 16:06:46 -04:00
cogitokat
ad1aeeec53 fixed indents
original-commit-id: 95369248f4400ea01b2f11216286c71bc515fe69
2013-06-23 16:48:51 -03:00
cogitokat
88313fd5af convert indents to 4 spaces in gfx.py
indents were previously 8 spaces

original-commit-id: 0b5885e1a96e9242fc31d9fdbfaf9c7c6097dd19
2013-06-23 16:47:35 -03:00