Register A: | 0 | Register B: | 0 |
Error: | false |
Z Flag: | false | Eq Flag: | false |
G Flag: | false | L Flag: | false |
JSP Enabled? | false | JSP: | 0 |
Reading instruction 0
[NOP | Do nothing]
No operand
Do nothing
User Input | Function |
---|---|
Arrows Keys / Left Click | move tile selection box |
Value
Instruction
Description
Has Operand
0
NOP
Do nothing
1
LOAD A
Load value at operand value address into register A
2
LOAD B
Load value at operand value address into register B
3
LOADI A
Load value at address stored at operand value address into register A
4
LOADI B
Load value at address stored at operand value address into register B
5
STORE A
Store register A value into operand value address
6
STORE B
Store register B value into operand value address
7
STOREI A
Store register A value into address at operand value address
8
STOREI B
Store register B value into address at operand value address
9
SET A
Load operand value into register A
10
SET B
Load operand value into register B
11
ADD A B
Add register A and register B, store in register A
12
ADDI A
Add operand value to register A
13
ADDI B
Add operand value to register B
14
SUB A B
Subtract register A from register B, store in register A
15
SUB B A
Subtract register B from register A, store in register A
16
SUBI A
Subtract operand value from register A, store in register A
17
SUBI B
Subtract operand value from register B, store in register B
18
INC A
Increment register A
19
INC B
Increment register B
20
DEC A
Decrement register A
21
DEC B
Decrement register B
22
CMP A B
clear flags; if A > B, set G; flag; if A < B, set L flag; if equal set E flag
23
CMP B A
clear flags; if A > B, set G; flag; if A < B, set L flag; if equal set E flag
24
ISZERO A
clear Z flag; if A == 0, set Z flag
25
ISZERO B
clear Z flag; if A == 0, set Z flag
26
JMP
Move the program counter to operand value address
27
JMPI
Move the program counter to address contained at operand value address
28
JZ
Move the program counter to operand value address if Z flag is true
29
JZI
Move the program counter to address contained at operand value address if Z flag is true
30
JG
Move the program counter to operand value address if G flag is true
31
JGI
Move the program counter to address contained at operand value address if G flag is true
32
JL
Move the program counter to operand value address if L flag is true
33
JLI
Move the program counter to address contained at operand value address if L flag is true
34
JE
Move the program counter to operand value address if E flag is true
35
JEI
Move the program counter to address contained at operand value address if E flag is true
36
JNE
Move the program counter to operand value address if E flag is false
37
JNEI
Move the program counter to address contained at operand value address if E flag is false
38
JERR
Move the program counter to operand value address if Err flag is true
39
JERRI
Move the program counter to address contained at operand value address if Err flag is true
40
RELJMP
Move the program counter to program counter plus the operand value
41
REGJMP A
Move the program counter to the value contained in register A
42
REGJMP B
Move the program counter to the value contained in register B
43
RET
Return to the last placed jumped from, decrement JSP
44
SETSP
Enable the JSP stack, set the JSP start pointer
45
DEREF A
Set register A to the value at the address contained in Register A
46
DEREF B
Set register B to the value at the address contained in Register B
47
SWAP A B
Swap the values in register A and register B
48
NOT A
Bitwise not register A value into register A
49
NOT B
Bitwise not register B value into register B
50
AND A
Bitwise and register A value and operand value into register A
51
AND B
Bitwise and register B value and operand value into register B
52
OR A
Bitwise or register A value and operand value into register A
53
OR B
Bitwise or register B value and operand value into register B
54
XOR A
Bitwise xor register A value and operand value into register A
55
XOR B
Bitwise xor register B value and operand value into register B
56
SHL A
Shift register A value left 1 bit, operand value times
57
SHL B
Shift register B value left 1 bit, operand value times
58
SHR A
Shift register A value right 1 bit, operand value times, propagating 0
59
SHR B
Shift register B value right 1 bit, operand value times, propagating 0
60
HALT
Halt the running program
61
ERROR
Halt the running program, toss the error flag
62
UNSETSP
Disable the JSP stack