class AVR::OpcodeDecoder::DecodedOpcode

Attributes

opcode_definition[R]
operands[R]

Public Class Methods

new(opcode_definition, operands) click to toggle source
# File lib/avr/opcode_decoder.rb, line 122
def initialize(opcode_definition, operands)
  @opcode_definition = opcode_definition
  @operands = operands
end

Public Instance Methods

prepare_operands(cpu) click to toggle source
# File lib/avr/opcode_decoder.rb, line 128
def prepare_operands(cpu)
  parser = OpcodeDecoder.operand_parsers[opcode_definition.operand_pattern]
  parser&.parse(cpu, operands) || operands
end