All Packages Class Hierarchy This Package Previous Next Index
Class duckMachine.operatingSystem.loadCommand
java.lang.Object
|
+----duckMachine.operatingSystem.ShellCommand
|
+----duckMachine.operatingSystem.loadCommand
- public class loadCommand
- extends ShellCommand
The load command of the shell. The command takes an object file,
parses it, and calls the appropriate method in the machine.
-
loadCommand(String)
-
-
execCommand(MachineI)
-
loadCommand
public loadCommand(String f) throws ObjectFileE
- Throws: ObjectFileE
- If the file is not found.
execCommand
public void execCommand(MachineI mach) throws ShellE
- Throws: ShellE
- If object file cannot be parsed or if the machine
cannot load because it contains addresses that are out of range.
- Overrides:
- execCommand in class ShellCommand
All Packages Class Hierarchy This Package Previous Next Index