Commit Graph

29 Commits

Author SHA1 Message Date
Mr Wint 66aaa9a0cb * added verification (equality test) for blue version build
* changed analyze_incbins to recognize generated label addresses
* fixed bank 1D assembly to make blue version build correctly
2013-03-12 03:46:32 +01:00
sawakita 19a859ca51 Improve error checking in the context of issue #27
Link to kanzures' guidelines for that issue:
https://bitbucket.org/iimarckus/pokered/issue/27/analyze_incbinsscan_for_predifined_labels#comment-2068911
2012-10-01 18:59:51 +02:00
sawakita db0c37557d Fix param error in load_asm_if_one_exists_in()
Not sure, but I suppose that using *args makes the passed list an element
of the args list, thus causing iteration on args to yield the passed
list as an element instead of yielding the single elements of the passed
list. Maybe.
2012-10-01 18:54:45 +02:00
sawakita 58a9aacc0b Restore auto-loading of default "main" asm file
This feature was removed misunderstanding its actual use: if filename
passed to load_asm() is in defaults the correct current main asm file is
loaded. This saves us from knowing which actually is the current name of
the "main" asm file, because the correct one is chosen automatically
(unless, of course, the passed filename is not in the defaults list.
2012-10-01 18:44:36 +02:00
sawakita 723e424979 Make analyze_incbins dirs reference os-independent
This should fix a bug caused by comparing string literals to
directories. It should also be safer, using "os" module to access paths.
2012-09-30 20:10:13 +02:00
Bryan Bishop cdcf80630f romvisualizer updates for main.asm, common.asm, pokered.asm
hg-commit-id: cc4f5c666710
2012-03-16 00:08:58 -05:00
IIMarckus 7a566260e6 Remove python shebangs.
- Not all systems have /usr/bin/python
- On those that do, it is not always python 2
- These files aren't marked executable anyway

Just use "python whatever.py" via shell instead.

hg-commit-id: 09184f4c838d
2012-03-14 20:44:07 -06:00
Bryan Bishop f4b8782536 tool to sort INCBINs by interval length
hg-commit-id: 3d687a971202
2012-01-30 13:46:31 -06:00
Bryan Bishop d1281e8d5e move learnsets into the asm
hg-commit-id: a77dfd566b43
2012-01-27 22:58:20 -06:00
Bryan Bishop 4f7a07efa9 rename common.asm -> main.asm
hg-commit-id: adec8319c54b
2012-01-25 22:33:42 -06:00
Bryan Bishop 00229b58b4 gbz80disasm now prints out known labels
hg-commit-id: f54b2dfb9512
2012-01-23 16:22:05 -06:00
Bryan Bishop 435ad93a95 python to find labels and offsets in analyze_incbins
hg-commit-id: 469315517f04
2012-01-23 14:40:00 -06:00
Bryan Bishop c2999b8645 analyze_incbins - reject zero interval incbins
hg-commit-id: 3e2f4c7591f4
2012-01-17 16:40:47 -06:00
Bryan Bishop be34aed58e fix some offset errors in insert_texts.py
hg-commit-id: b131d049ecd3
2012-01-17 14:54:06 -06:00
Bryan Bishop e5f9d4a144 text insertion code for unnamed TX_FARs
These TX_FARs are found in ASM inside INCBIN intervals, and as a
consequence do not have good names. Someone will have to review the
naming.

Note that these texts may or may not be referenced in scripts that
will eventually be imported. Some of these are raw texts that could
be completely unreferenced, but so far that doesn't look like the
case.

hg-commit-id: 47239e73071a
2012-01-17 13:34:51 -06:00
Bryan Bishop 4b0f1982bf update analyze_incbins for common.asm
hg-commit-id: ea7bf352f66c
2012-01-15 16:34:32 -06:00
Bryan Bishop 167d9baac3 fix asm for route 9 texts 1 through 9 inclusive
hg-commit-id: e139dfb9a032
2012-01-11 12:20:16 -06:00
Bryan Bishop 4c59064f9f insert_asm in insert_texts for function asm
hg-commit-id: dc34a93f0f47
2012-01-10 01:18:18 -06:00
Bryan Bishop c7331ebd19 updates to asm injection code
hg-commit-id: 6748c9773b32
2012-01-09 23:12:28 -06:00
Bryan Bishop dc0af17185 insert labels for map texts pointer lists
hg-commit-id: f374e6e126d7
2012-01-08 05:03:58 -06:00
Bryan Bishop eb1c47ce51 update to the broken TX_FAR inserter
hg-commit-id: f5fa1a4f052c
2012-01-08 03:43:26 -06:00
Bryan Bishop ff60685f4e text analysis and insertion code (TX_FAR targets only)
hg-commit-id: e4c007ad1c11
2012-01-07 15:13:24 -06:00
Bryan Bishop 3f35c6cf07 import lots of block labels
map_block_dumper is very buggy, so not all labels are included yet.

hg-commit-id: 1880e2dfbf9e
2012-01-04 00:11:39 -06:00
Bryan Bishop be36119c58 Route11GateUpstairs_h map header asm
hg-commit-id: 8638c4221e05
2012-01-03 17:15:42 -06:00
Bryan Bishop b945ae8fe6 Route11Gate_h map header asm
hg-commit-id: 6c4ccdd3e56a
2012-01-03 17:15:14 -06:00
Bryan Bishop 7207000776 analyze_incbins now applies map header asm patches
hg-commit-id: aec68677b92a
2012-01-03 17:13:46 -06:00
Bryan Bishop f3bc2ccc9e remove debug print line
hg-commit-id: 9eac2d93fe88
2012-01-03 16:05:00 -06:00
Bryan Bishop 76c0308b5a fix final interval in generated incbins
hg-commit-id: 38e1356814c2
2012-01-03 15:50:55 -06:00
Bryan Bishop 4f0571f067 analyze_incbins is a tool to generate diffs
hg-commit-id: 15e2aa3dae32
2012-01-03 14:18:11 -06:00