Class: Lignite::Gteq32

Inherits:
Condition show all
Defined in:
lib/lignite/condition.rb

Overview

Greater-than-or-equal (32 bit)

Instance Method Summary collapse

Methods inherited from Condition

#jump_back, #jump_forward

Constructor Details

#initialize(a, b) ⇒ Gteq32

Returns a new instance of Gteq32.



73
74
75
76
# File 'lib/lignite/condition.rb', line 73

def initialize(a, b)
  @a = a
  @b = b
end

Instance Method Details

#cond_jump(compiler, offset) ⇒ Object



82
83
84
# File 'lib/lignite/condition.rb', line 82

def cond_jump(compiler, offset)
  compiler.jr_gteq32(@a, @b, JumpOffset.new(offset))
end

#notObject



78
79
80
# File 'lib/lignite/condition.rb', line 78

def not
  Lt32.new(@a, @b)
end