DiztinGUIsh icon indicating copy to clipboard operation
DiztinGUIsh copied to clipboard

Feature Request: A couple of things can be added so when outputed asm is compiled in asar it can auto remap all pointers and jumps after adding or removing asm and auto add empty data

Open slidelljohn opened this issue 1 year ago • 1 comments
trafficstars

Here is a modification that I have to make to the outputted disassembly in order for all pointers and jumps to auto remap in asar after adding or removing asm:

I have to manually add this label "LDX.W #CODE_0081C9" that points to where high score data is in Gradius 3: manually add label

There is a few modifications that I have to make for empty space to automatically be calculated:

  1. Manually remove empty space "0xff..............". Last empty byte removed = $00FFBF
  2. Add starting point for data/asm after manually remove empty space = ORG $00FFC0
  3. Add fill byte code to beginning of asm file so all empty space is 0xFF. empty space

I have seen some roms have set patterns for empty space that can be multiple bytes but Im not sure what the limitations of "fillbyte" is in asar.

Having DiztinGUIsh set that label is the most important issue. Having the empty space to automatically be calculated/added might or might not be something that can be useful. I would like to hear others opinions on the empty space part.

slidelljohn avatar May 24 '24 02:05 slidelljohn