Skip to content

Commit

Permalink
support asm6f as a parameter alias for asm6
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelk committed Jan 6, 2024
1 parent 0e598a0 commit 1ee952d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ func initializeApp() (*log.Logger, *options.Program, *options.Disassembler) {
err := flags.Parse(os.Args[1:])
args := flags.Args()

opts.Assembler = strings.ToLower(opts.Assembler)
if opts.Assembler == "asm6f" {
opts.Assembler = "asm6"
}

disasmOptions := options.NewDisassembler(opts.Assembler)
disasmOptions.ZeroBytes = zeroBytes

Expand Down Expand Up @@ -146,7 +151,9 @@ func disasmFile(logger *log.Logger, opts *options.Program, disasmOptions *option
if !opts.Quiet {
logger.Info("Processing ROM",
log.String("file", opts.Input),
log.Uint8("mapper", cart.Mapper))
log.Uint8("mapper", cart.Mapper),
log.String("assembler", opts.Assembler),
)
}
if cart.Mapper != 0 && cart.Mapper != 3 {
logger.Warn("Support for this mapper is experimental, multi bank mapper support is still in development")
Expand Down

0 comments on commit 1ee952d

Please sign in to comment.