org.zmpp.vm
Class Abbreviations

java.lang.Object
  extended by org.zmpp.vm.Abbreviations
All Implemented Interfaces:
ZsciiConverter.AbbreviationsTable

public class Abbreviations
extends Object
implements ZsciiConverter.AbbreviationsTable

This class represents a view to the abbreviations table. The table starts at the predefined address within the header and contains pointers to ZSCII strings in the memory map. These pointers are word addresses as opposed to all other addresses in the memory map, therefore the actual value has to multiplied by two to get the real address.

Version:
1.0
Author:
Wei-ju Wu

Constructor Summary
Abbreviations(MemoryReadAccess map, int address)
          Constructor.
 
Method Summary
 int getWordAddress(int entryNum)
          The abbreviation table contains word addresses, so read out the pointer and multiply by two
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Abbreviations

public Abbreviations(MemoryReadAccess map,
                     int address)
Constructor.

Parameters:
map - the memory map
address - the start address of the abbreviations table
Method Detail

getWordAddress

public int getWordAddress(int entryNum)
The abbreviation table contains word addresses, so read out the pointer and multiply by two

Specified by:
getWordAddress in interface ZsciiConverter.AbbreviationsTable
Parameters:
entryNum - the entry index in the abbreviations table
Returns:
the word address


Copyright © 2005 . All Rights Reserved.