Class: AVR::Register

Inherits:
Value
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/avr/register.rb

Direct Known Subclasses

MemoryByteRegister, RegisterPair

Instance Attribute Summary collapse

Attributes inherited from Value

#name, #value

Instance Method Summary collapse

Methods inherited from Value

#format, #inspect, #to_i, #to_s, #value_hex

Constructor Details

#initialize(cpu, name) ⇒ Register

Returns a new instance of Register.



12
13
14
15
16
# File 'lib/avr/register.rb', line 12

def initialize(cpu, name)
  super()
  @cpu = cpu
  @name = name
end

Instance Attribute Details

#cpuObject (readonly)

Returns the value of attribute cpu.



9
10
11
# File 'lib/avr/register.rb', line 9

def cpu
  @cpu
end