# Timeless Instruction Set - Computational Instructions

• Read the full story behind the instruction set in Foundations of Computer Science.

## Filters

Mnemonic Name Arguments Type Categories
sub Subtract x = a - b Computational
mul Multiply x = a * b Computational
div Divide x = a / b Computational
pow Exponentiate x = a ^ b Computational
mod Modulus x = a % b Computational
max Maximum x = max(a, b) Computational
min Minimum x = min(a, b) Computational
neg Negate x = -a Computational
pos Positive x = +a Computational
sqrt Square Root x = sqrt(a) Computational
rnd Round x = round(a) Computational
flr Floor x = floor(a) Computational
cil Ceil x = ceil(a) Computational
tnc Truncate x = truncate(a) Computational
abs Absolute x = abs(a) Computational
log Logarithm x = log(a) Computational
ln Natural Logarithm x = ln(a) Computational
sin Sine x = sin(a) Computational
cos Cosine x = cos(a) Computational
tan Tangent x = tan(a) Computational
asin Arc Sine x = asin(a) Computational
acos Arc Cosine x = acos(a) Computational
atan Arc Tangent x = atan(a) Computational
exp Exponential x = exp(a) Computational
eq Equals x = a = b Computational
neq Unequals x = a != b Computational
lt Less Than x = a < b Computational
lte Less Than or Equal x = a <= b Computational
gt Greater Than x = a > b Computational
gte Greater Than or Equal x = a >= b Computational
and And x = a & b Computational
or Or x = a | b Computational
not Not x = !a Computational
if If if a { Computational
else Else } else { Computational
loop Loop loop { Computational
init Begin Loop Initialization Block (block) Computational
inc Begin Loop Increment Block (block) Computational
call Call f(fss) Computational
fnc Begin Function Block function f { Computational
ret Return return a Computational
bgs Begin Structure Block struct { Computational
endb End Block } Computational
par Parenthesis x = (a) Computational
mov Copy x = a Computational
len Length x = a.length Computational
idr Read Array at Index x = a[b] Computational
idw Write Array at Index x[a] = b Computational
acw Write Accessed Structure x.a = b Computational
acr Read Accessed Structure x = a.b Computational
cvt Convert x = (type)a Computational
new Allocate Structure x = new S Computational
nwa Allocate Primitive Array x = new type[b] Computational
nsa Allocate Structure Array x = new S[a] Computational
del Deallocate Structure delete a Computational
dla Deallocate Array delete [] a Computational
num Number Entry number a Computational
bl Boolean Entry boolean a Computational
chr Character Entry char a Computational
str Structure Entry S a Computational
nma Number Array Entry number [] a Computational
bla Boolean Array Entry boolean [] a Computational
cha Character Array Entry char [] a Computational
sta Structure Array Entry S [] a Computational
###### Contact Information

We would be more than happy to help you. Our opening hours are 9–15 (CET).

📞 (+47) 93 68 22 77

Nils Bays vei 50, 0876 Oslo, Norway