Class: Wilson::MMXRegister

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

Overview

MMXRegister is an X86 MMX register

Instance Attribute Summary

Attributes inherited from SpecialRegister

#id

Attributes inherited from Operand

#bits, #machine

Instance Method Summary collapse

Methods inherited from SpecialRegister

on_id, #special_register?

Methods inherited from Operand

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

Constructor Details

This class inherits a constructor from Wilson::Operand

Dynamic Method Handling

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

Instance Method Details

#push_mod_rm_on(spareRegister, stream) ⇒ Object



1116
1117
1118
# File 'lib/wilson.rb', line 1116

def push_mod_rm_on spareRegister, stream
  stream << (0b11000000 + id + (spareRegister.id << 3))
end