org.zmpp.base
Interface MemoryAccess

All Superinterfaces:
MemoryReadAccess
All Known Implementing Classes:
DefaultMemoryAccess, MemorySection

public interface MemoryAccess
extends MemoryReadAccess

This class manages read and write access to the byte array which contains the story file data. It is the only means to read and manipulate the memory map.

Version:
1.0
Author:
Wei-ju Wu

Method Summary
 void writeByte(int address, byte value)
          Writes a byte value to the specified address.
 void writeShort(int address, short value)
          Writes a short value to the memory.
 void writeUnsigned32(int address, long value)
          Writes an unsigned 32 bit value to the specified address.
 void writeUnsignedByte(int address, short value)
          Writes an unsigned byte value to the specified address.
 void writeUnsignedShort(int address, int value)
          Writes an unsigned 16 bit value to the specified address.
 
Methods inherited from interface org.zmpp.base.MemoryReadAccess
readByte, readShort, readUnsigned32, readUnsignedByte, readUnsignedShort
 

Method Detail

writeUnsignedShort

void writeUnsignedShort(int address,
                        int value)
Writes an unsigned 16 bit value to the specified address.

Parameters:
address - the address to write to
value - the value to write

writeShort

void writeShort(int address,
                short value)
Writes a short value to the memory.

Parameters:
address - the address
value - the value

writeUnsignedByte

void writeUnsignedByte(int address,
                       short value)
Writes an unsigned byte value to the specified address.

Parameters:
address - the address to write to
value - the value to write

writeByte

void writeByte(int address,
               byte value)
Writes a byte value to the specified address.

Parameters:
address - the address
value - the value

writeUnsigned32

void writeUnsigned32(int address,
                     long value)
Writes an unsigned 32 bit value to the specified address.

Parameters:
address - the address to write to
value - the value to write


Copyright © 2005 . All Rights Reserved.