jmce - 1_02

jmce.sim
Interface Loader

All Known Implementing Classes:
AbstractLoader, BinaryLoader, IntelLoader, MotorolaLoader, ZXSnapshot

public interface Loader

Interface used to load a program / data in the cpu memory

Version:
1.00
Author:
Mario Viara

Method Summary
 boolean isFileSupported(java.lang.String name)
          Test if the interface support one file.
 void load(Memory m, java.lang.String name, int address, LoadInfo info)
          Load the file in memory
 void setCPU(CPU cpu)
           
 

Method Detail

isFileSupported

boolean isFileSupported(java.lang.String name)
Test if the interface support one file.

Parameters:
name - - File to be tested.
Returns:
true if the file is supported.

setCPU

void setCPU(CPU cpu)

load

void load(Memory m,
          java.lang.String name,
          int address,
          LoadInfo info)
          throws SIMException
Load the file in memory

Parameters:
m - - Memory where load the file.
name - - File name.
address - - Base address where start loading.
info - - Load information must be set after loading is completed.
Throws:
SIMException
See Also:
LoadInfo

jmce - 1_02