Class: Furnace::AVM2::ABC::AS3Jump

Inherits:
ControlTransferOpcode show all
Defined in:
lib/furnace-avm2/abc/opcodes/control_transfer/as3_jump.rb

Constant Summary

Constants inherited from Opcode

Opcode::MAP

Instance Attribute Summary

Attributes inherited from ControlTransferOpcode

#target

Attributes inherited from Opcode

#sequence

Instance Method Summary collapse

Methods inherited from ControlTransferOpcode

#lookup!, #parameters, #resolve!, #target_offset, #target_offset=

Methods inherited from Opcode

#ast_type, body, #byte_length, #consumes_context, define_property, #disassemble, #initialize, mnemonic, #next, #offset, #parameters, #read, #root, #write

Constructor Details

This class inherits a constructor from Furnace::AVM2::ABC::Opcode

Instance Method Details

#disassemble_parametersObject



14
15
16
17
18
19
20
# File 'lib/furnace-avm2/abc/opcodes/control_transfer/as3_jump.rb', line 14

def disassemble_parameters
  if body.jump_offset >= 0
    "+#{body.jump_offset}"
  else
    body.jump_offset.to_s
  end
end