CheatSheet

Mode Name Description Instructions
0
not use nill mode
1 MODE_DEBUG depuration put char nill strb stro stri strx strc mode
2 MODE_STRING console put char nill strb stro stri strx strc mode
3 MODE_INPUT console input keyboard nill strb stro stri strx strc mode
4 MODE_INPUT_SILENT console input keyboard (silent) nill strb stro stri strx strc mode
5 MODE_INPUT_PASSWORD console input keyboard (password) nill strb stro stri strx strc mode
6 MODE_MEMORY main memory controller nill free aloc moff muse mode
7 MODE_MEMORY_PTR pointers memory controller nill free aloc pull spin push mode
8 MODE_MEMORY_AUX aux memory controller nill free aloc pull spin push mode
9 MODE_JUMP logical jumps between labels nill goto fgto zgto pgto ngto mode
10
reserved
11 MODE_MATH_SUM basic mathematic sum nill math mode
12 MODE_MATH_SUB basic mathematic subtration nill math mode
13 MODE_MATH_MUL basic mathematic multiplication nill math mode
14 MODE_MATH_DIV basic mathematic division nill math mode
15 MODE_MATH_MOD basic mathematic rest of division nill math mode
16 MODE_MATH_POWER basic mathematic power nill math mode
17 MODE_MATH_ROOT basic mathematic root nill math mode
18 MODE_MATH_ABS basic mathematic module nill math mode
29 MODE_MATH_MUL_ADD multiply by base and add acumulator nill nb02 nb08 nb10 nb16 mode
20
reserved
21 MODE_BITWISE_NOT boolean not (per bit) nill math mode
22 MODE_BITWISE_AND boolean and (per bit) nill math mode
23 MODE_BITWISE_OR boolean or (per bit) nill math mode
24 MODE_BITWISE_XOR boolean xor (per bit) nill math mode
25 MODE_BITWISE_NAND boolean nand (per bit) nill math mode
26 MODE_BITWISE_NOR boolean nor (per bit) nill math mode
27 MODE_BITWISE_XNOR boolean xnor (per bit) nill math mode
28 MODE_BITWISE_LEFT bit shift left nill math mode
29 MODE_BITWISE_LEFT bit shift right nill math mode
30
reserved
31 MODE_BOOLEAN_NOT boolean not nill math mode
32 MODE_BOOLEAN_AND boolean and nill math mode
33 MODE_BOOLEAN_OR boolean or nill math mode
34 MODE_BOOLEAN_XOR boolean xor nill math mode
35 MODE_BOOLEAN_NAND boolean nand nill math mode
36 MODE_BOOLEAN_NOR boolean nor nill math mode
37 MODE_BOOLEAN_XNOR boolean xnor nill math mode
38 MODE_LOG_BASE logarithm in base n nill math mode
39 MODE_LOG_NATURAL natural logarithm nill math mode
40
reserved
41 MODE_PROCEDURE_RET procedure return nill back fret zret pret nret mode
42 MODE_PROCEDURE procedure call nill call fcal zcal pcal ncal mode
43 MODE_SLEEP inactive cpu for a periodt of time nill real fake micr mili seco mode

Architecture details

COMMON

name octal bit description
nill 0 000 label reference point or skip line (null)
mode 7 111 change cpu register bank

NO MODE DONT USE

MODE DEBUG

name octal bit description
strb 1 001 log number as binary
stro 2 010 log number as octal
stri 3 011 log number as decimal
strx 4 100 log number as hexadecimal
strc 5 101 log ascii character

MODE STRING

name octal bit description
strb 1 001 put number as binary
stro 2 010 put number as octal
stri 3 011 put number as decimal
strx 4 100 put number as hexadecimal
strc 5 101 put ascii character

MODE INPUT

name octal bit description
strb 1 001 input number as binary
stro 2 010 input number as octal
stri 3 011 input number as decimal
strx 4 100 input number as hexadecimal
strc 5 101 input ascii character

MODE INPUT SILENT

name octal bit description
strb 1 001 input number as binary
stro 2 010 input number as octal
stri 3 011 input number as decimal
strx 4 100 input number as hexadecimal
strc 5 101 input ascii character

MODE INPUT PASSWORD

name octal bit description
strb 1 001 input number as binary
stro 2 010 input number as octal
stri 3 011 input number as decimal
strx 4 100 input number as hexadecimal
strc 5 101 input ascii character

MODE MEMORY

name octal bit description
free 1 001 realese memory
aloc 2 010 reserve memory and set a value
moff 3 011 memory config remove mask
muse 4 100 memory config append mask

MODE MEMORY PTR

name octal bit description
free 1 001 realese memory in pointer
aloc 2 010 set a value in pointer
pull 3 011 pull aux memory to address pointer memory (ptr <- aux)
spin 4 100 inverse values inner memory pointer and aux (ptr <-> aux)
push 5 101 push aux memory to pointer memory (ptr -> aux)

MODE MEMORY AUX

name octal bit description
free 1 001 realese memory aux
aloc 2 010 set a value in aux memory
pull 3 011 pull aux memory to address memory (addr <- aux)
spin 4 100 inverse values inner memory and aux (addr <-> aux)
push 5 101 push aux memory to address memory (addr -> aux)

MODE JUMP

name octal bit description
goto 1 001 jump to the label unconditionally
fgto 2 010 jump to the label if aux memory is fill
zgto 3 011 jump to the label if aux memory is empty
pgto 4 100 jump to the label if aux memory is positive
ngto 5 101 jump to the label if aux memory is negative

MODE MATH SUM

name octal bit description
math 1 001 add value in the aux memory

MODE MATH SUB

name octal bit description
math 1 001 subtraction in the aux memory

MODE MATH MUL

name octal bit description
math 1 001 multiplication in the aux memory

MODE MATH DIV

name octal bit description
math 1 001 division in the aux memory

MODE MATH MOD

name octal bit description
math 1 001 rest of the division with aux memory

MODE MATH POWER

name octal bit description
math 1 001 enhance aux memory value

MODE MATH ROOT

name octal bit description
math 1 001 root aux memory value

MODE MATH ABS

name octal bit description
math 1 001 module positive aux memory value

MODE MATH MUL ADD

name octal bit description
nb02 1 001 multiply by 2 and accumulate operation
nb08 2 010 multiply by 8 and accumulate operation
nb10 3 011 multiply by 10 and accumulate operation
nb16 4 100 multiply by 16 and accumulate operation

MODE BITWISE NOT

name octal bit description
math 1 001 aux boolean not (per bit)

MODE BITWISE AND

name octal bit description
math 1 001 aux boolean and (per bit)

MODE BITWISE OR

name octal bit description
math 1 001 aux boolean or (per bit)

MODE BITWISE XOR

name octal bit description
math 1 001 aux boolean xor (per bit)

MODE BITWISE NAND

name octal bit description
math 1 001 aux boolean nand (per bit)

MODE BITWISE NOR

name octal bit description
math 1 001 aux boolean nor (per bit)

MODE BITWISE XNOR

name octal bit description
math 1 001 aux boolean xnor

MODE BITWISE LEFT

name octal bit description
math 1 001 aux bit shift left

MODE BITWISE LEFT

name octal bit description
math 1 001 aux bit shift right

MODE BOOLEAN NOT

name octal bit description
math 1 001 aux boolean not

MODE BOOLEAN AND

name octal bit description
math 1 001 aux boolean and

MODE BOOLEAN OR

name octal bit description
math 1 001 aux boolean or

MODE BOOLEAN XOR

name octal bit description
math 1 001 aux boolean xor

MODE BOOLEAN NAND

name octal bit description
math 1 001 aux boolean nand

MODE BOOLEAN NOR

name octal bit description
math 1 001 aux boolean nor

MODE BOOLEAN XNOR

name octal bit description
math 1 001 aux boolean xnor

MODE LOG BASE

name octal bit description
math 1 001 log aux in base n

MODE LOG NATURAL

name octal bit description
math 1 001 log aux natural

MODE PROCEDURE_RET

name octal bit description
call 1 001 return from procedure unconditionally
fcal 2 010 return from procedure if aux memory is fill
zcal 3 011 return from procedure if aux memory is empty
pcal 4 100 return from procedure if aux memory is positive
ncal 5 101 return from procedure if aux memory is negative

MODE PROCEDURE

name octal bit description
call 1 001 call label procedure unconditionally
fcal 2 010 call label procedure if aux memory is fill
zcal 3 011 call label procedure if aux memory is empty
pcal 4 100 call label procedure if aux memory is positive
ncal 5 101 call label procedure if aux memory is negative

MODE SLEEP

name octal bit description
real 1 001 inactive cpu for x cycles (real hardware)
fake 2 010 inactive cpu for x cycles (virtual machine)
micr 3 011 inactive cpu for x microseconds
mili 4 100 inactive cpu for x milliseconds
seco 5 101 inactive cpu for x seconds