Skip to content

Commit

Permalink
fix asm6 support zeropage prefix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelk committed Jul 19, 2023
1 parent db1e11f commit 23b0a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (dis *Disasm) replaceParamByAlias(address uint16, opcode cpu.Opcode, param
// force using absolute address to not generate a different opcode by using zeropage access mode
switch opcode.Addressing {
case ZeroPageAddressing, ZeroPageXAddressing, ZeroPageYAddressing:
return "z:" + paramAsString
return dis.options.ZeroPagePrefix + paramAsString
case AbsoluteAddressing, AbsoluteXAddressing, AbsoluteYAddressing:
return "a:" + paramAsString
default: // indirect x, ...
Expand Down

0 comments on commit 23b0a25

Please sign in to comment.