org.razvan.jzx
Class Z80Loader

java.lang.Object
  extended by org.razvan.jzx.BaseLoader
      extended by org.razvan.jzx.Z80Loader

public class Z80Loader
extends BaseLoader

Z80 Snapshot loader.

This class can load and store internally the contents of a Z80 snapshot.

Author:
Razvan Surdulescu (c) 2001 - 2006, Erik Kunze (c) 1995, 1996, 1997, Des Herriott (c) 1993, 1994
You may use and distribute this software for free provided you include this copyright notice. You may not sell this software, use my name for publicity reasons or modify the code without permission from me.

Field Summary
 
Fields inherited from class org.razvan.jzx.BaseLoader
m_af16, m_af16alt, m_bc16, m_bc16alt, m_border, m_de16, m_de16alt, m_hl16, m_hl16alt, m_i8, m_iff1a, m_iff1b, m_im2, m_issue, m_ix16, m_iy16, m_last0x7ffd, m_last0xfffd, m_logger, m_memory, m_mode, m_pc16, m_r8, m_sp16, m_url, MODE_128, MODE_48
 
Constructor Summary
Z80Loader(ILogger logger, java.net.URL url)
           
 
Method Summary
 void load(java.lang.String name)
          Load the header and the body for the given snapshot name.
protected  void loadBody(java.io.InputStream is)
          Load the Z80 snapshot body.
protected  void loadHeader(java.io.InputStream is)
          Load the Z80 snapshot header.
protected  void loadPage(java.io.InputStream is, int block, boolean skip)
          Load a memory page from the Z80 snapshot.
 
Methods inherited from class org.razvan.jzx.BaseLoader
getAF16, getAF16ALT, getBC16, getBC16ALT, getBorder, getDE16, getDE16ALT, getHL16, getHL16ALT, getI8, getIFF1a, getIFF1b, getIM2, getIssue, getIX16, getIY16, getLast0x7ffd, getLast0xfffd, getMemory, getMode, getPC16, getR8, getSP16
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Z80Loader

public Z80Loader(ILogger logger,
                 java.net.URL url)
Method Detail

load

public void load(java.lang.String name)
          throws java.io.IOException
Load the header and the body for the given snapshot name.

Specified by:
load in class BaseLoader
Parameters:
name - The name of the snapshot to be loaded. This parameter is appended to the previously provided URL parameter to form the absolute URL.
Throws:
java.io.IOException

loadHeader

protected void loadHeader(java.io.InputStream is)
                   throws java.io.IOException
Load the Z80 snapshot header.

Throws:
java.io.IOException

loadBody

protected void loadBody(java.io.InputStream is)
                 throws java.io.IOException
Load the Z80 snapshot body.

Throws:
java.io.IOException

loadPage

protected void loadPage(java.io.InputStream is,
                        int block,
                        boolean skip)
                 throws java.io.IOException
Load a memory page from the Z80 snapshot.

Throws:
java.io.IOException