class AVR::RegisterWithModification
Attributes
modification[R]
register[R]
Public Class Methods
new(register, modification = :none)
click to toggle source
Calls superclass method
# File lib/avr/register_with_modification.rb, line 20 def initialize(register, modification = :none) @register = register @modification = T.let(T.must(modification), Symbol) super() end
Public Instance Methods
name()
click to toggle source
# File lib/avr/register_with_modification.rb, line 27 def name '%s%s%s' % [ modification == :pre_decrement ? '-' : '', register.to_s, modification == :post_increment ? '+' : '', ] end