Arakula / dasmfw

The DisASseMbler FrameWork
GNU General Public License v2.0
13 stars 4 forks source link

Option Offset not working as expected #9

Closed phillipeaton closed 2 years ago

phillipeaton commented 2 years ago

I'm simplifying my command line for running dasmfw, putting parameters into the info file:

option dasm 6502      * Select disassembler type
option out jetpac.a65 * Select output filename of dissasembly
*option offset 2000   * Select start address of supplied binary
option upmnemo off    * upper case mnemonics in output file

It would appear that option offset 2000 doesn't work, you must to specify it from the command line.

Currently I'm using dasmfw.exe -info="jetpac.nfo" -offset=2000 "jetpac_2000-3fff.bin"

Ideally, I'd like to use just dasmfw.exe -info="jetpac.nfo", but I can't see an option to specify the in file in the info file.

I tried option in filename.xtn but it didn't work (though not really surprising).

Arakula commented 2 years ago

file jetpac_2000-3fff.bin 2000 should work

Arakula commented 2 years ago
option offset 2000
file jetpac_2000-3fff.bin

should work, too

phillipeaton commented 2 years ago

file jetpac_2000-3fff.bin 2000 works 😀

file jetpac_2000-3fff.bin
option offset 2000

Does not work, the option offset part fails

Arakula commented 2 years ago

Wouldn't have worked anyway, as the order is important here (the options begin,end,offset,interleave,bus always define settings for the following file) ... but you're right, it doesn't work at all in the current version 😀 ... I'm still testing a fix; the next version should allow

option offset 2000
file jetpac_2000-3fff.bin
Arakula commented 2 years ago

OK, I've uploaded a new version now that should work better in this respect. If you find a problem, feel free to reopen this issue.

phillipeaton commented 2 years ago

Thanks for the update, I'll check it out later today.

phillipeaton commented 2 years ago

Tested with the following, now seems to work correctly:

option dasm 6502            * Select disassembler type
option out jetpac.a65       * Select output filename of dissasembly
option offset 2000          * Select start address of supplied binary
file   jetpac_2000-3fff.bin * Instructs dasmfw to load the given file at the given address

Thanks for the fix!