Class: Dvi::Opcode::X0

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

Overview

X0 is a class for x0 opcode.

Instance Method Summary collapse

Methods inherited from ChangeRegister0

read

Methods inherited from Base

range, read, set_range

Instance Method Details

#interpret(ps) ⇒ Object



256
257
258
259
# File 'lib/dvi/opcode.rb', line 256

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