next up previous contents index
Next: Memory Up: Hardware Components Previous: Hardware Components   Contents   Index

The Processor

(CORE/PROCESSOR.JAVA,
CORE/SAMPROCESSOR.JAVA)
The SaM processor is responsible for the loading of a Program object, and the execution of Instruction objects, enclosed within that Program object. Like a real processor, it also provides registers, which assist program execution.

Program Execution

To execute a program, it must first be loaded by the processor. The following methods allow this to happen:

Following the successful loading of a program, it may be executed one instruction at a time or all instructions with one call:

Registers

The SaM Processor implements several registers that allow the Processor to execute programs. These are not used for data storage, but rather are internal processor registers.

Registers can be manipulated using the following methods:


next up previous contents index
Next: Memory Up: Hardware Components Previous: Hardware Components   Contents   Index
David Levitan 2006-02-12