class Metasm::CY16::Reg
Attributes
i_to_s[RW]
s_to_i[RW]
i[RW]
Public Class Methods
from_str(s)
click to toggle source
# File metasm/cpu/cy16/main.rb, line 26 def self.from_str(s) raise "Bad name #{s.inspect}" if not x = @s_to_i[s] new(x) end
new(i)
click to toggle source
# File metasm/cpu/cy16/main.rb, line 20 def initialize(i) @i = i end
Public Instance Methods
render()
click to toggle source
# File metasm/cpu/cy16/render.rb, line 14 def render ; [self.class.i_to_s[@i]] end
symbolic(orig=nil)
click to toggle source
# File metasm/cpu/cy16/main.rb, line 24 def symbolic(orig=nil) ; to_s.to_sym ; end