Class: Furnace::AVM2::Tokens::AsmOpToken
- Inherits:
-
Code::TerminalToken
- Object
- Code::TerminalToken
- Furnace::AVM2::Tokens::AsmOpToken
- Defined in:
- lib/furnace-avm2/source/implementation_tokens/asm_op_token.rb
Instance Method Summary collapse
-
#initialize(origin, opcode, options = {}) ⇒ AsmOpToken
constructor
A new instance of AsmOpToken.
- #to_text ⇒ Object
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, ={}) super(origin, ) @opcode = opcode end |
Instance Method Details
#to_text ⇒ Object
9 10 11 |
# File 'lib/furnace-avm2/source/implementation_tokens/asm_op_token.rb', line 9 def to_text "op(0x#{@opcode.opcode})" end |