Class: Dvi::Opcode::X

Inherits:
ChangeRegister show all
Defined in:
lib/dvi/opcode.rb

Overview

X is a class for x1 … x4 opcodes.

Instance Attribute Summary

Attributes inherited from ChangeRegister

#size

Instance Method Summary collapse

Methods inherited from ChangeRegister

#initialize

Methods inherited from ChangeRegister0

read

Methods inherited from Base

range, read, set_range

Constructor Details

This class inherits a constructor from Dvi::Opcode::ChangeRegister

Instance Method Details

#interpret(ps) ⇒ Object



265
266
267
268
269
270
# File 'lib/dvi/opcode.rb', line 265

def interpret(ps)
  # change x.
  ps.x = @size
  # move right.
  ps.h += ps.x
end