org.zmpp.vm
Class InstructionDecoder

java.lang.Object
  extended by org.zmpp.vm.InstructionDecoder

public class InstructionDecoder
extends Object

The instruction decoder decodes an instruction at a specified address.

Version:
1.0
Author:
Wei-ju Wu

Constructor Summary
InstructionDecoder(Machine machineState, MemoryReadAccess memaccess)
          Constructor.
 
Method Summary
 AbstractInstruction decodeInstruction(int instructionAddress)
          Decode the instruction at the specified address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstructionDecoder

public InstructionDecoder(Machine machineState,
                          MemoryReadAccess memaccess)
Constructor.

Parameters:
memaccess - the memory access object
Method Detail

decodeInstruction

public AbstractInstruction decodeInstruction(int instructionAddress)
Decode the instruction at the specified address.

Parameters:
instructionAddress - the current instruction's address
Returns:
the instruction at the specified address


Copyright © 2005 . All Rights Reserved.