Class: Wilson::MemoryRegister

Inherits:
Register show all
Defined in:
lib/wilson.rb

Overview

MemoryRegister is a regular Register, but the parser needs to know if it is a primary or secondary register. This form is a private secondary register. Use Register instead of this guy.

Instance Attribute Summary

Attributes inherited from Register

#id

Attributes inherited from Operand

#bits, #machine

Instance Method Summary collapse

Methods inherited from Register

#+, #-, #get, #initialize, #m, on_id_bits, #push_mod_rm_on, #register?

Methods inherited from Operand

#initialize, #instructionFromMessage, #method_missing, on, #operand?

Constructor Details

This class inherits a constructor from Wilson::Register

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wilson::Operand

Instance Method Details

#memory_register?Boolean

Returns:

  • (Boolean)


984
985
986
# File 'lib/wilson.rb', line 984

def memory_register?
  true
end