Documentation
¶
Overview ¶
Package parameter provides helpers to output instruction parameters as string compatible with specific assemblers.
Index ¶
- func String(converter Converter, addressing m6502.AddressingMode, param any) (string, error)
- type Config
- type Converter
- func (c Converter) Absolute(param any) (string, error)
- func (c Converter) AbsoluteX(param any) (string, error)
- func (c Converter) AbsoluteY(param any) (string, error)
- func (c Converter) Accumulator() string
- func (c Converter) Immediate(param any) string
- func (c Converter) Indirect(param any) (string, error)
- func (c Converter) IndirectX(param any) (string, error)
- func (c Converter) IndirectY(param any) (string, error)
- func (c Converter) Relative(param any) string
- func (c Converter) ZeroPage(param any) (string, error)
- func (c Converter) ZeroPageX(param any) (string, error)
- func (c Converter) ZeroPageY(param any) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ZeroPagePrefix string AbsolutePrefix string IndirectPrefix string IndirectSuffix string }
Config contains the configuration for the parameter converter.
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter converts the opcode parameters to specific assembler compatible output.
func (Converter) Absolute ¶
Absolute converts the parameters to the assembler implementation compatible string.
func (Converter) AbsoluteX ¶
AbsoluteX converts the parameters to the assembler implementation compatible string.
func (Converter) AbsoluteY ¶
AbsoluteY converts the parameters to the assembler implementation compatible string.
func (Converter) Accumulator ¶
Accumulator converts the parameters to the assembler implementation compatible string.
func (Converter) Immediate ¶
Immediate converts the parameters to the assembler implementation compatible string.
func (Converter) Indirect ¶
Indirect converts the parameters to the assembler implementation compatible string.
func (Converter) IndirectX ¶
IndirectX converts the parameters to the assembler implementation compatible string.
func (Converter) IndirectY ¶
IndirectY converts the parameters to the assembler implementation compatible string.
func (Converter) Relative ¶
Relative converts the parameters to the assembler implementation compatible string.
func (Converter) ZeroPage ¶
ZeroPage converts the parameters to the assembler implementation compatible string.