KOSMOS Commands

Math 10 -- D. C. Smolarski, S.J.


List of KOSMOS Mnemonic OP Codes

Mnemonic	Instruction		Machine
OP code					Code
Miscellaneous
EXT		Exit			00
WT		Wait			01
WTB		Wait and branch		02
NOP		No OP			03
WRP		Write on Printer	06
WRT		Write on Typewriter	07
WRC		Write on Card		08
Branch
BAP		Branch ACC non-neg	10
BAZ		Branch ACC zero		11
BOV		Branch on overflow	12
BIZ		Branch on index zero	13
BIE		Branch on index equal	14
SIB		Set index and branch	15
BMP		Branch MQ non-neg	16
BMZ		Branch MQ zero		17
BU		Branch unconditionally	18
WBS		Wait and branch on switch 19
Arithmetic
ADD		Add			20
ADA		Add absolute		21
ADM		Add to memory		22
SUB		Subtract		23
SUA		Subtract absolute	24
DIV		Divide			25
MUL		Multiply		26
Floating Arithmetic
FAD		Floating add		30
FSU		Floating subtract	33
FDI		Floating divide		35
FMU		Floating multiply	36
Load and Store
LD		Load ACC		40
LDN		Load ACC neg		41
ST		Store ACC		42
LIA		Load index from ACC	43
SIA		Store index in ACC	44
SAM		Store address in memory	45
LDM		Load MQ			46
STM		Store MQ		47
LIM		Load index from memory	48
SIM		Store index in memory	49
Shift
SLA		Shift left ACC		50
SL		Shift left ACC & MQ	51
SRA		Shift right ACC		52
SR		Shift right ACC & MQ	53
ROR		Rotate right		54
Indexing
RI		Raise index		60
LI		Lower index		61
EXI		Exchange index		62
Pseudo-op codes
ASM		Assemble (Initiate KOSMOS Assembler)
DC		Define constant
DS		Define space
END		End (Final assembler instruction of program)


This page is maintained by Dennis C. Smolarski, S.J. dsmolarski@math.scu.edu
© Copyright 1997, 1999, Dennis C. Smolarski, SJ, All rights reserved. Last changed: 6 February 1999.