Commit Graph

564 Commits

Author SHA1 Message Date
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
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
Bryan Bishop
2d5e2dcb19 Merge pull request #147 from yenatch/master
gbz80disasm/sym fixes + odds and ends

original-commit-id: ac773a9dc1499f7070dc98236c66de6309885210
2013-06-17 16:56:00 -07:00
Bryan Bishop
76b71fda33 programmatic speedrun of pokecrystal (vba)
original-commit-id: fe01fb510ff87310de1ecbce73f74d1a390d557c
2013-06-16 17:17:37 -05:00
Bryan Bishop
9155ace6fd make vba emulator wait until text is done drawing
Also, this fixes some bugs related to how button presses are handled.

original-commit-id: 6c5ccae8078fd753314b5c63ba7c4a4b9e2ae402
2013-06-16 11:34:30 -05:00
yenatch
1578452ebc symfile: fix address handling
original-commit-id: a4235e11bfe379f410f07aaab3b8a887a5d917ed
2013-06-16 11:20:12 -04:00
yenatch
b4ff3d3098 gbz80disasm: fix labels outside of banks 0 and 1
original-commit-id: dfb241619203a2b1b9eb389055cbe0ff31baa7a0
2013-06-15 14:11:50 -04:00
yenatch
a8986d8c16 gbz80disasm: only use gbhw/hram constants >= 0xff00
original-commit-id: 2f21ff4ef5f4b26801463db720be32f55cfaf7d4
2013-06-14 02:19:35 -04:00
yenatch
9d4e21cabe gfx: return mass-decompress command
still reqd by make pngs

original-commit-id: bbed370d84e1721fc78c008bc5122776703f0f41
2013-06-13 17:26:50 -04:00
yenatch
a6477032f3 Merge branch 'master' of github.com:kanzure/pokecrystal
original-commit-id: 2b2d3e5e6827e8a596eb64254b990c665caee138
2013-06-13 16:11:30 -04:00
Bryan Bishop
fad3edee77 Merge remote-tracking branch 'yenatch/master'
Also merge pull request #145.

original-commit-id: 4eebcf0ae2fc411916cdd44b4ca3ffdb1b6cca7b
2013-06-12 22:44:45 -05:00
Bryan Bishop
a26573cd85 Revert "make gfx.py png take only a path"
This reverts commit 915c6358490494b87c81a464492944f80ee86384.

original-commit-id: 358b5b074b45e4a484799fde4e18bc2cb4fec78b
2013-06-12 22:44:35 -05:00
yenatch
5c26634f81 Merge branch 'master' of github.com:kanzure/pokecrystal
Conflicts:
	extras/gfx.py

original-commit-id: a923bf768ae2307d2ed2bc289c98e07a8de77084
2013-06-12 23:31:21 -04:00
yenatch
3cadc09cc0 expand shortened palettes
rather than keep up inconsistent palette formats, just incbin a portion of each

original-commit-id: 6ba758aa53bbf14e2c152fd88f786a501f6bb029
2013-06-12 21:40:37 -04:00
yenatch
7ccbbcced8 gfx: workable command line functions
original-commit-id: 5803db714c348574e09e428b79aa2c66531e74f5
2013-06-12 21:40:32 -04:00
yenatch
1db2941c7d gfx: palette checking in to_png
original-commit-id: b06c96e4d2d9e365544f8abba9392752178a8fcd
2013-06-12 14:38:38 -04:00
yenatch
dc268dfbc6 fix palette functions and output palettes in 2bpp conversion
original-commit-id: 5d204ce5692c06f9b48bbad0fe1e42107bdf5231
2013-06-12 14:29:39 -04:00
yenatch
53af4e21e9 gfx: handling for <4-color pngs when converting to 2bpp
without a .pal file as reference, palettes are sorted by luminance.
pokemon crystal reads palettes exactly 4 colors in length.
if an image used fewer than 4 colors, invalid palettes were produced.

instead, dummy colors are inserted to pad out the palette.

original-commit-id: 5cf1754b08aa6903f01b839c917169e6dc8c260f
2013-06-12 14:29:35 -04:00
Bryan Bishop
84ca20850d make gfx.py png take only a path
original-commit-id: 915c6358490494b87c81a464492944f80ee86384
2013-05-29 19:44:08 -05:00
Kat Harrison
19f3a9e31b Include overworld sprites
Created /extras/overworldripper.py and used it to extract overworld sprites and convert them to png files.

original-commit-id: e08e7cf7b22bc8d29011dc864a895293157ceecd
2013-05-27 23:07:34 -04:00
yenatch
85aad5c408 gbz80disasm: rgbds uses brackets for ld hl, sp+x
original-commit-id: 399925fff577cf11a77193d997d2bf19ee72aa04
2013-05-21 16:43:54 -04:00
Bryan Bishop
c56a6e1eab Merge pull request #138 from yenatch/master
automated png compression + gfx fixes + no more windows

original-commit-id: fdc1609f2a658b26599a9191bfbe99095248b6fc
2013-05-18 01:49:03 -07:00
yenatch
829fa1d626 gfx: safer alternating-byte detection in compression
original-commit-id: e3565bd7007b194b04ceecaf1909fff65062211f
2013-05-18 04:46:52 -04:00
yenatch
e4cf93bff1 gfx: fix a typo
original-commit-id: 77e365d49ffc6caa5364b405a263e4a43938def1
2013-05-18 04:46:52 -04:00
yenatch
b4d2e0eb00 gfx: lz to png from command line
original-commit-id: 604cafc27859700e45f4c54237b54f3c584cf458
2013-05-18 04:46:52 -04:00
yenatch
cbdf84afda gfx.py: remove trailing tabs
original-commit-id: a1b9fdc9c92279bef7383e8c8278934ca2889de8
2013-05-18 04:46:51 -04:00
yenatch
b19194349e gfx.py: get rid of argparse
original-commit-id: abaed2145fbf982a4873e186e964ce0435fb3ce0
2013-05-18 04:46:47 -04:00
Bryan Bishop
8288eb8d31 load labels only once in gbz80disasm
original-commit-id: f10019710f70f855beaa67c1170337e28cc7a57f
2013-05-17 15:58:47 -05:00
yenatch
0cf529cd7d fix data-handling errors in gfx.py
original-commit-id: 3a0e80932ec11494407ea5a3aa7724007b71502b
2013-05-17 01:59:23 -04:00
yenatch
98379e786f gbz80disasm: include comments on unresolved backward relative jumps
original-commit-id: 5521aa5ce0ad5249ff0d369dd33b4f63cd804b73
2013-05-15 14:57:04 -04:00
yenatch
1a3cfd3dda gbz80disasm: don't look for outstanding labels that are behind the origin
original-commit-id: b38e2874095266d45df984be778d9fe68832aaac
2013-05-15 14:40:20 -04:00
yenatch
7368155075 gbz80disasm: don't include comments on relative jumps
original-commit-id: a6fee3622a9705d060cbe467bd32e425a1ff2bc4
2013-05-15 14:39:43 -04:00
yenatch
c4f10ac672 gbz80disasm: reti is an ender
original-commit-id: 81e42e41da5a664aa528ad4f9284119456b15817
2013-05-15 14:39:43 -04:00
yenatch
13c2378a80 gbz80disasm: space out blocks of asm
original-commit-id: 3cf6603b455530fa0c17e946118484a0126e2bf9
2013-05-15 14:39:42 -04:00
yenatch
66b9c8877d gbz80disasm: clean up $ff00+x handling
original-commit-id: 82d723840b14fc6b55c00f107a453bc0b0d80772
2013-05-15 14:39:19 -04:00
yenatch
eef1b7af74 gbz80disasm: read labels from wram/gbhw/hram
original-commit-id: 1bdcac1fe11746b67f17285d2f04e3b9c52772d1
2013-05-14 21:01:46 -04:00
yenatch
5c9b3914e0 wram: find() instead of split()
original-commit-id: 0fc866caa5664f6e9755138423c1f4caaeed1b78
2013-05-14 20:25:43 -04:00
yenatch
01169cfce8 gbz80disasm: bank 1 was being read as bank 0
original-commit-id: aed0202999656cf4cafd26c52bd98d9fcf5e63d4
2013-05-14 18:18:07 -04:00
yenatch
2eede61247 wram.py: bss and constant parsing
original-commit-id: aecce03834844f6c876d903a781443d65dbc11cb
2013-05-14 18:11:19 -04:00
yenatch
fc0906d42e transition gbz80disasm to use a bytearray instead of RomStr
original-commit-id: 5b95c5aad7d840a09727d3d56626ba624cddbbf3
2013-05-14 14:38:57 -04:00