Difference between revisions of "CSC103 Basic Instructions"
(New page: =Basic Instructions for the Pocessor [http://maven.smith.edu/~thiebaut/classes/103/applets.htm Simulator]= <code><pre> ADD Add to Acc ADD-C Add C to Acc SUB Sub from Acc...) |
(→Basic Instructions for the Pocessor Simulator) |
||
Line 9: | Line 9: | ||
SHL Shift left Acc ADD-I Add-indirect | SHL Shift left Acc ADD-I Add-indirect | ||
SHR Shift right Acc SUB-I Sub-indirect | SHR Shift right Acc SUB-I Sub-indirect | ||
− | INC Increment Acc AND-I And-indirect | + | INC Increment Acc AND-I And-indirect |
− | DEC Decrement Acc OR-I Or-indirect | + | DEC Decrement Acc OR-I Or-indirect |
LOD Load Acc from mem LOD-I Load indirect | LOD Load Acc from mem LOD-I Load indirect | ||
HLT Stop! STO-I Store indirect | HLT Stop! STO-I Store indirect |
Revision as of 07:46, 24 September 2008
Basic Instructions for the Pocessor Simulator
ADD Add to Acc ADD-C Add C to Acc
SUB Sub from Acc SUB-C Sub C from Acc
AND And with Acc AND-C And C with Acc
OR Or with Acc OR-C Or C with Acc
NOT invert Acc LOD-C Load C in Acc
SHL Shift left Acc ADD-I Add-indirect
SHR Shift right Acc SUB-I Sub-indirect
INC Increment Acc AND-I And-indirect
DEC Decrement Acc OR-I Or-indirect
LOD Load Acc from mem LOD-I Load indirect
HLT Stop! STO-I Store indirect
JMP Jmp to address JMP-I Jmp indirect
JMZ Jmp if Acc=0 JMZ-I Jmp zero indirect
JMN Jmp if negative JMN-I Jmp negative indirect
JMF Jmp on flag JMF-I Jmp flag indirect