Class: FloatSwapInstruction

Inherits:
Instruction show all
Includes:
SwapInstruction
Defined in:
lib/instructions/float/float_swap.rb

Overview

exchanges the position of the top 2 items on the :float stack

Instance Attribute Summary

Attributes included from SwapInstruction

#target_stack

Attributes inherited from Instruction

#context

Instance Method Summary collapse

Methods included from SwapInstruction

#cleanup, #derive, #preconditions?, #setup

Methods inherited from Instruction

all_instructions, #cleanup, #derive, #go, inherited, #needs, #preconditions?, #pushes, #setup, to_nudgecode

Constructor Details

#initialize(context) ⇒ FloatSwapInstruction

Returns a new instance of FloatSwapInstruction.



6
7
8
# File 'lib/instructions/float/float_swap.rb', line 6

def initialize(context)
  super(context, :float)
end