opcodes.h File Reference

All operator codes for the pseudo-assembler. More...

This graph shows which files directly or indirectly include this file:


Enumerations

enum  OpCode {
  NOP = 0x00, LDA = 0x04, LDB = 0x05, STA = 0x08,
  STB = 0x09, INP = 0x18, OUT = 0x1C, ADD = 0x20,
  SUB = 0x21, MUL = 0x28, DIV = 0x2C, JMP = 0x30,
  JSP = 0x32, JSN = 0x34, JIZ = 0x36, JOF = 0x38,
  JSB = 0x3C, RTS = 0x3D, HLT = 0x3F
}
 Operator codes for the pseudo-assembler. More...

Detailed Description

All operator codes for the pseudo-assembler.

Author:
Wesley Stessens

Enumeration Type Documentation

enum OpCode

Operator codes for the pseudo-assembler.

Enumerator:
NOP  NOP instruction; does nothing.
LDA  LDA instruction; loads something into register A.
LDB  LDB instruction; loads something into register B.
STA  STA instruction; stores the content of register A in a virtual address.
STB  STB instruction; stores the content of register B in a virtual address.
INP  INP instruction; ask for input and store the input in register A.
OUT  OUT instruction; output the value in register A.
ADD  ADD instruction; store the value in register A + the value in register B in register A.
SUB  SUB instruction; store the value in register A - the value in register B in register A.
MUL  MUL instruction; store the value in register A * the value in register B in register A.
DIV  DIV instruction; store the value in register A / the value in register B in register A.
JMP  JMP instruction; unconditionally jump to some line (or address).
JSP  JSP instruction; jump to some line (or address) when the value in register A is strictly positive.
JSN  JSN instruction; jump to some line (or address) when the value in register A is strictly negative.
JIZ  JIZ instruction; jump to some line (or address) when the value in register A is equal to 0.
JOF  JOF instruction; jump to some line (or address) when an overflow occured.
JSB  JSB instruction; unconditionally enter some subroutine.
RTS  RTS instruction; return back from the subroutine.
HLT  HLT instruction; stop the program.


Generated on Thu Jun 11 02:07:50 2009 for PASM by  doxygen 1.5.6