Next:
Contents
Contents
Index
SaM v2.6 Design Documentation
Ivan Gyurdiev
David Levitan
9/5/2005
Contents
Introduction
What is SaM?
What is SaM 2?
What are the major SaM Components?
Program Execution
Components
Hardware Components
The Processor
Memory
The Heap Allocator
Video Card
System Chipset
Internal Simulator Classes
SaM Instructions
SaM Symbol Table
SaM Reference Table
SaM Program
SaM I/O
SaM Front Ends
SaM Assembler
SaM Graphical User Interfaces
SamGUI - Graphical UI
SamCapture - Capture Viewer
SamTester - Test Script Execution
Usage
SaM Text User Interface
SamText - Text UI
SaM Instruction Set Architecture Manual
Type Converters
FTOI
FTOIR
ITOF
Stack Insertions
PUSHIMM
PUSHIMMF
PUSHIMMCH
PUSHIMMMA
PUSHIMMPA
PUSHIMMSTR
Register Manipulation
PUSHSP
PUSHFBR
POPSP
POPFBR
Stack Manipulation
DUP
SWAP
Stack/Heap Allocation
ADDSP
MALLOC
FREE
Absolute Store/Retrieve
PUSHIND
STOREIND
PUSHABS
STOREABS
Relative Store/Retrieve
PUSHOFF
STOREOFF
Integer Algebra
ADD
SUB
TIMES
DIV
MOD
Floating Point Algebra
ADDF
SUBF
TIMESF
DIVF
Shifts
LSHIFT
LSHIFTIND
RSHIFT
RSHIFTIND
Logic
AND
OR
NOR
NAND
XOR
NOT
Bitwise Logic
BITAND
BITOR
BITNOR
BITNAND
BITXOR
BITNOT
Comparison
CMP
CMPF
GREATER
LESS
EQUAL
ISNIL
ISPOS
ISNEG
Jumps
JUMP
JUMPC
JUMPIND
RST
JSR
JSRIND
SKIP
Stack Frames
LINK
UNLINK
Input/Output
READ
READF
READCH
READSTR
WRITE
WRITEF
WRITECH
WRITESTR
Program Control
STOP
Index
About this document ...
David Levitan 2006-02-12