jmce - 1_02

jmce.sim.cpu
Class BinaryLoader

java.lang.Object
  extended by jmce.sim.cpu.AbstractLoader
      extended by jmce.sim.cpu.BinaryLoader
All Implemented Interfaces:
Loader

public class BinaryLoader
extends AbstractLoader

Sample implementation to load binary files.

Version:
1.00
Author:
Mario Viara

Constructor Summary
BinaryLoader(java.lang.String ext)
           
 
Method Summary
 void load(Memory m, java.lang.String name, int base, LoadInfo info)
          Load the file in memory
 
Methods inherited from class jmce.sim.cpu.AbstractLoader
isFileSupported, setCPU, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryLoader

public BinaryLoader(java.lang.String ext)
Method Detail

load

public void load(Memory m,
                 java.lang.String name,
                 int base,
                 LoadInfo info)
          throws SIMException
Description copied from interface: Loader
Load the file in memory

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

jmce - 1_02