Class: Dvi::Opcode::W

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

Overview

W is a class for w1 … w4 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



245
246
247
248
249
250
# File 'lib/dvi/opcode.rb', line 245

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