retroenv / nesgodisasm

Nintendo Entertainment System ROM disassembler written in Golang
Apache License 2.0
14 stars 2 forks source link

reassembling smb1 fails after jump engine support merge #14

Closed cornelk closed 1 year ago

cornelk commented 1 year ago

based on commit 2fc8569a2cf569dc0a5f48596f052923bfb43260

disassembling failed: creating .nes file failed: linking file: ld65: Warning: /tmp/rom.3494014071.cfg(17): Segment 'VECTORS' start address is too low in 'PRG' by 2 bytes
ld65: Warning: /tmp/rom.3494014071.cfg(6): Segment 'VECTORS' overflows memory area 'PRG' by 2 bytes
ld65: Error: Cannot generate most of the files due to memory area overflows

wrong handling of function inside an opcode, should emit .db byte for bit instruction:

  bit a:_data_cfb5               ; $DC20 2C

_func_dc21:
  lda $CF,X                      ; $DC21 B5 CF