aboutsummaryrefslogtreecommitdiffstats
path: root/extras/gbz80disasm.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* make extras/ a submoduleBryan Bishop2013-09-011-853/+0
| | | | | Use pokemontools v1.3.0 and use the same preprocessor as the pokecrystal project.
* Improve error checking in the context of issue #27sawakita2012-10-011-1/+3
| | | | | Link to kanzures' guidelines for that issue: https://bitbucket.org/iimarckus/pokered/issue/27/analyze_incbinsscan_for_predifined_labels#comment-2068911
* Remove python shebangs.IIMarckus2012-03-141-1/+0
| | | | | | | | | | | - 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
* update gbz80disasm to find labels betterBryan Bishop2012-01-241-4/+9
| | | | | hg-commit-id: 10be245776b4
* gbz80disasm - only use labels when the bank matchesBryan Bishop2012-01-231-1/+2
| | | | | hg-commit-id: caf3eb99db86
* gbz80disasm now prints out known labelsBryan Bishop2012-01-231-20/+35
| | | | | hg-commit-id: f54b2dfb9512
* $039e -> HandleMidJumpBryan Bishop2012-01-231-0/+1
| | | | | hg-commit-id: f18a7d446304
* use labels in more commands in gbz80disasmBryan Bishop2012-01-211-2/+2
| | | | | hg-commit-id: b49550d941d7
* replaced $3e2e with GiveItem in some textsBryan Bishop2012-01-211-0/+2
| | | | | hg-commit-id: dda17ec62888
* update gbz80disasm to account for conditional relative forward jumpsBryan Bishop2012-01-201-4/+17
| | | | | hg-commit-id: 86a98b551bf2
* The python tools should spit out tabs, not spaces.IIMarckus2012-01-181-1/+1
| | | | | hg-commit-id: fc09f0bbe4b3
* ItemUseNotTime for gbz80disasmBryan Bishop2012-01-151-0/+1
| | | | | hg-commit-id: cb4aedaf6142
* GenRandom for gbz80disasmBryan Bishop2012-01-151-0/+1
| | | | | hg-commit-id: 99c7713bd905
* code to insert main scripts and subscriptsBryan Bishop2012-01-131-2/+7
| | | | | hg-commit-id: 807e8743e682
* a very slow tool to find script pointers for each mapBryan Bishop2012-01-131-1/+9
| | | | | hg-commit-id: a61a85fd7577
* update gbz80disasm for TextScriptEndBryan Bishop2012-01-121-0/+1
| | | | | hg-commit-id: f519c306bc00
* clean up trailing whitespace in gbz80disasmBryan Bishop2012-01-121-525/+525
| | | | | hg-commit-id: 1ef910ea7bbf
* stop disassembling when unconditional relative jumps go backBryan Bishop2012-01-121-1/+1
| | | | | | | | This adds the condition that it should stop disassembling even if there are unsatisfied labels (example: from before the text script began). hg-commit-id: 0b6ebcb02348
* update gbz80disasm based on sawakita's changesBryan Bishop2012-01-121-8/+15
| | | | | | | | | | | | | | | Changes include: * .ASM_ labels now include their offset in the label * byte_labels keeps better track of when a label is defined versus used * reverse relative jumps now work * reverse unconditional relative jumps can end a script hg-commit-id: 8afc93fce17a
* remove extra output from gbz80disasmBryan Bishop2012-01-111-1/+0
| | | | | hg-commit-id: 2c4886b28a2f
* fix gbz80disasm to not treat $00 as the second byte of an opcodeBryan Bishop2012-01-111-1/+2
| | | | | hg-commit-id: 290296b59823
* add end address to gbz80disasm output in a commentBryan Bishop2012-01-111-0/+3
| | | | | hg-commit-id: 1d79cd8b426a
* lowercase two-byte ops that don't have paramsBryan Bishop2012-01-101-1/+1
| | | | | hg-commit-id: 4b518c1bd0a0
* fix gbz80disasm for multi-byte opcode incrementationBryan Bishop2012-01-101-2/+2
| | | | | hg-commit-id: ad1ae67c5991
* gbz80disasm stops at all unconditional jumps unless there's a missing labelBryan Bishop2012-01-101-6/+7
| | | | | hg-commit-id: c23fcf211c19
* RockTunnel1 texts and update gbz80disasm to not handle $8Bryan Bishop2012-01-101-4/+6
| | | | | hg-commit-id: 86d0d495afbc
* pick some reasonable defaults for gbz80disasm op codesBryan Bishop2012-01-101-10/+18
| | | | | hg-commit-id: c249e08cbe9b
* prefer "jp hl" over "ld pc, hl" for $E9Bryan Bishop2012-01-101-1/+1
| | | | | hg-commit-id: 4788aae09066
* add GetMachineName address to gbz80disasmBryan Bishop2012-01-101-0/+1
| | | | | hg-commit-id: 8ba8806f333f
* call $00b5 -> call CopyDataBryan Bishop2012-01-101-0/+1
| | | | | hg-commit-id: e6a487cf2186
* replace call $3e6d -> call PredefBryan Bishop2012-01-101-0/+1
| | | | | hg-commit-id: 8045c9d0d1a1
* call $2f9e -> call GetMonNameBryan Bishop2012-01-101-0/+1
| | | | | hg-commit-id: 7bb690c08a4d
* fix gbz80disasm line repetition bugBryan Bishop2012-01-101-3/+1
| | | | | | | Certain two-byte op codes would be printed twice. hg-commit-id: 8c7650a614b7
* implement two-byte op codes in gbz80disasmBryan Bishop2012-01-101-4/+32
| | | | | | | | | | | | Previously, two-byte commands in gbz80disasm would not read or allow parameters. This update fixes gbz80disasm to read both the "x" and "?" parameters. x = one-byte parameter ? = two-byte parameter hg-commit-id: 1494e8a88115
* fix gbz80disasm pretty printer for non-08 scriptsBryan Bishop2012-01-101-1/+4
| | | | | hg-commit-id: 6f16741dc45f
* add has_outstanding_labels to gbz80disasmBryan Bishop2012-01-101-8/+23
| | | | | | | | | This checks for whether or not there are relative jumps that have not been accounted for. When it finds that a label on a relative jump is outstanding, it will continue past any byte or command that would usually end the script. hg-commit-id: 20fba34f0ae2
* replace call pointers with labels in gbz80disasmBryan Bishop2012-01-101-9/+24
| | | | | | | | | | Also, this changes how output_bank_opcodes works. Instead of calling lower() on the entire output, each opcode and each line is individually lowercased. As a result, the calls end up with correctly-capitalized labels. hg-commit-id: bdde4aa404da
* call $3927 -> call AddPokemonToPartyBryan Bishop2012-01-101-1/+1
| | | | | hg-commit-id: a4ec02195797
* fix extra whitespace from gbz80disasmBryan Bishop2012-01-101-3/+3
| | | | | hg-commit-id: a244eb0b11fd
* insert_asm in insert_texts for function asmBryan Bishop2012-01-101-3/+4
| | | | | hg-commit-id: dc34a93f0f47
* call $3c49 -> call PrintTextBryan Bishop2012-01-101-1/+1
| | | | | hg-commit-id: 2d9bb23f9db3
* remove debug output from gbz80disasmBryan Bishop2012-01-101-2/+1
| | | | | hg-commit-id: 65f6c206f6e1
* fix gbz80disasm to optionally load a module in analyze_textsBryan Bishop2012-01-101-2/+2
| | | | | hg-commit-id: 0504f841a9d5
* updates to asm injection codeBryan Bishop2012-01-091-6/+8
| | | | | hg-commit-id: 6748c9773b32
* insertion code for $08 text script asmBryan Bishop2012-01-091-525/+534
| | | | | hg-commit-id: 5668ca41238c
* a simple gameboy disassemblerBryan Bishop2012-01-091-0/+704
hg-commit-id: 69a312de70de