Commit graph

688 commits

Author SHA1 Message Date
Bryan Bishop
b6d32d9022 fix gbz80disasm pretty printer for non-08 scripts
hg-commit-id: 6f16741dc45f
2012-01-10 12:06:32 -06:00
Bryan Bishop
71a840c3c3 add has_outstanding_labels to gbz80disasm
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
2012-01-10 11:25:09 -06:00
Bryan Bishop
33b7fedda3 replace call pointers with labels in gbz80disasm
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
2012-01-10 11:16:57 -06:00
Bryan Bishop
24d5cdd15e call $3dd7 -> call Delay3
hg-commit-id: 48f0de3e5ee3
2012-01-10 11:06:45 -06:00
Bryan Bishop
b37a473c7c call $35d6 -> call Bankswitch
Thanks sawakita.

hg-commit-id: 3f365e56f6e6
2012-01-10 09:50:56 -06:00
Bryan Bishop
468d065715 call $3927 -> call AddPokemonToParty
hg-commit-id: a4ec02195797
2012-01-10 02:11:54 -06:00
Bryan Bishop
e8fdd637b6 remove trailing whitespace
hg-commit-id: 97ab9714f6e2
2012-01-10 01:54:03 -06:00
Bryan Bishop
e7ca984d9d call $3e48 -> call GivePokemon
hg-commit-id: 47cc1351a7b5
2012-01-10 01:48:44 -06:00
Bryan Bishop
b36fbc72f3 fix extra whitespace from gbz80disasm
hg-commit-id: a244eb0b11fd
2012-01-10 01:40:34 -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
983b87069d call $3c49 -> call PrintText
hg-commit-id: 2d9bb23f9db3
2012-01-10 01:05:09 -06:00
Bryan Bishop
14f9f3fac7 remove debug output from gbz80disasm
hg-commit-id: 65f6c206f6e1
2012-01-10 01:02:18 -06:00
Bryan Bishop
a1eebadc37 fix gbz80disasm to optionally load a module in analyze_texts
hg-commit-id: 0504f841a9d5
2012-01-10 00:59:02 -06:00
Bryan Bishop
a036d99f28 replace all MR__MIME -> MR_MIME
hg-commit-id: d7c6ab9c996e
2012-01-10 00:35:23 -06:00
Bryan Bishop
0527d9686d OAK_S_PARCEL -> OAKS_PARCEL
hg-commit-id: e03d18825d81
2012-01-10 00:32:54 -06:00
Bryan Bishop
69f6603b82 clean up Route2Text2 asm
hg-commit-id: ba721fa305ad
2012-01-10 00:27:06 -06:00
IIMarckus
eb9ea271da Expand arguments to $3E48 (give Pokémon).
hg-commit-id: 19b5e33a08c7
2012-01-09 23:10:50 -07:00
IIMarckus
0c9db7d447 Expand arguments to $3493, $13D0.
hg-commit-id: 20f43fcec416
2012-01-09 23:07:18 -07:00
IIMarckus
0c2da1f0fb Expand arguments to $3e2e.
hg-commit-id: 0676d79eee24
2012-01-09 22:49:15 -07:00
Bryan Bishop
096e5155e2 asm injection for most $08 text scripts
hg-commit-id: 585b34d6c244
2012-01-09 23:12:43 -06:00
Bryan Bishop
c7331ebd19 updates to asm injection code
hg-commit-id: 6748c9773b32
2012-01-09 23:12:28 -06:00
Bryan Bishop
52e723ae65 insertion code for $08 text script asm
hg-commit-id: 5668ca41238c
2012-01-09 22:24:04 -06:00
Bryan Bishop
6ee0c38b35 a simple gameboy disassembler
hg-commit-id: 69a312de70de
2012-01-09 20:52:31 -06:00
Bryan Bishop
7819dc288e CELADON_HOUSE_2 -> CELADON_HOUSE
hg-commit-id: 0574f08aaf85
2012-01-09 01:19:10 -06:00
Bryan Bishop
b6d8ebb416 fix map naming mistakes in celadon city
hg-commit-id: d7234963d818
2012-01-09 01:15:09 -06:00
Sawakita
cdaf8e3d9a Add function to get a monster's name from a given id (internal order).
hg-commit-id: 42e7deffd9b8
2012-01-08 23:45:46 +01:00
Sawakita
4b11f36a0a Add explanatory comment to function CheckBagItemExist ($3493).
hg-commit-id: 1765b4515253
2012-01-08 14:12:18 +01:00
Sawakita
e590a10b81 Function3493 is now labeled CheckBagItemExist.
hg-commit-id: 8afe60ff982a
2012-01-08 14:07:32 +01: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
be26f828bd even more TX_FAR insertions
hg-commit-id: 44e1dbd6bd48
2012-01-08 04:48:59 -06:00
Bryan Bishop
82eb22acc5 more TX_FAR insertions
hg-commit-id: ba6ffc8ba7af
2012-01-08 03:43:35 -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
3948f21d57 script to insert TX_FAR labels
hg-commit-id: 6be98c7af43b
2012-01-08 00:23:52 -06:00
Bryan Bishop
a1dcf11f7c minor spacing and formatting
hg-commit-id: 4141f2d72c99
2012-01-07 16:25:31 -06:00
Bryan Bishop
4c0265e6d5 fix _ViridianHouseText1
hg-commit-id: d6fa1ce51d98
2012-01-07 16:23:50 -06:00
Bryan Bishop
db8de333af merge and more typo fixes
hg-commit-id: d50dff2b19cd
2012-01-07 16:08:15 -06:00
IIMarckus
f3bc5b4cad Add an explanatory comment.
hg-commit-id: 83fada9b6062
2012-01-07 14:46:55 -07:00
Bryan Bishop
3fb87cc7db fix map files for cinnibar -> cinnabar
hg-commit-id: 8d9cd5c5d165
2012-01-07 15:43:36 -06:00
Bryan Bishop
10307a7032 typo fix for cinnibar -> cinnabar
hg-commit-id: 5001a53ec965
2012-01-07 15:40:25 -06:00
Bryan Bishop
53d2e24212 add TX_FAR target texts into pokered
hg-commit-id: 17491cbcc0dd
2012-01-07 15:13:45 -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
20c54ccd58 add more text bytes for abbreviations
hg-commit-id: 95383d94746e
2012-01-07 12:11:12 -06:00
Bryan Bishop
53f6e08cfb trainer pics and basemoney (stag019)
hg-commit-id: cfc025c5493c
2012-01-07 02:03:58 -06:00
Bryan Bishop
d0be12ead0 somewhat buggy TX_FAR pretty printer
hg-commit-id: 94a023e4e37e
2012-01-07 01:34:22 -06:00
Bryan Bishop
6bad9c837c analyze_texts can handle more text commands now
hg-commit-id: 29ece1f29096
2012-01-06 22:26:08 -06:00
Bryan Bishop
1661e1890b starting to work with text command $01
hg-commit-id: e5bcd78d262b
2012-01-06 15:52:52 -06:00
Bryan Bishop
242a02aaa7 analyze_text now works with TX_FAR
hg-commit-id: a32cf6cdc6f2
2012-01-06 14:23:12 -06:00
Bryan Bishop
f1054129e2 fix pointer calculation in analyze_texts
hg-commit-id: 13e532bc6ca5
2012-01-06 12:20:46 -06:00
Bryan Bishop
6a8582e61f fix some python reserved names and variables
hg-commit-id: 712f1522dcc9
2012-01-06 11:20:48 -06:00
Bryan Bishop
d9fb7e59bd a prototype of a script to parse text scripts
hg-commit-id: e879fc3b59e3
2012-01-06 03:22:53 -06:00