mgbdis icon indicating copy to clipboard operation
mgbdis copied to clipboard

Game Boy ROM disassembler with RGBDS compatible output

Results 9 mgbdis issues
Sort by recently updated
recently updated
newest added

I'm working on a large disassembly project and I'd like to be able to share it and add comments, but I can't include the disassembled binary with anything I share...

I have an example of the issue. Explanation: A garbage function call from a data section of the ROM broke what should have been a 3-byte instruction. Screenshot shows comparison...

The following currently isn't disassembled correctly: ```asm ; @00:0000 nop jr $0004 nop ``` ``` 00:0000 Glob1 00:0001 .local 00:0003 Glob2 00:0004 .local ``` This will produce the following: ```asm...

RGBDS has supported [labels as `rst` arguments since 0.4.0](https://github.com/gbdev/rgbds/releases/tag/v0.4.0); using labels instead of plain numbers help `rst`s provide as much info through their argument as `call`s do.

I can't seem to find more documentation on the `.sym` file format. Does `mgbdis` implement a subset of it?

Somewhat incomplete, if a label occurs in the middle of a "unit", an assertion is tripped. I'm not sure how to handle that case.

I've added a --pret-style arg that changes output a bit to match disassemblies written for [pret](https://github.com/pret). It includes the following: - All function labels are `Func_[Global Addr]` instead of `[type]_[bank]_[local...

I can mark a block as .text in the sym file but the ROM I'm looking at isn't using standard ASCII so I'd need a Character Map or some other...

These would go in their own WRAM0, WRAMX, or HRAM SECTIONs.