Class: Furnace::AVM2::Tokens::AsmOpToken

Inherits:
Code::TerminalToken
  • Object
show all
Defined in:
lib/furnace-avm2/source/implementation_tokens/asm_op_token.rb

Instance Method Summary collapse

Constructor Details

#initialize(origin, opcode, options = {}) ⇒ AsmOpToken

Returns a new instance of AsmOpToken.



4
5
6
7
# File 'lib/furnace-avm2/source/implementation_tokens/asm_op_token.rb', line 4

def initialize(origin, opcode, options={})
  super(origin, options)
  @opcode = opcode
end

Instance Method Details

#to_textObject



9
10
11
# File 'lib/furnace-avm2/source/implementation_tokens/asm_op_token.rb', line 9

def to_text
  "op(0x#{@opcode.opcode})"
end