-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKnightASM.txt
47 lines (42 loc) · 907 Bytes
/
KnightASM.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Knight Assembly
perm permission N(0/1) (directive)
test R permissions
cvt type R
var type variable(N)
load R constant
load R variable(N)
store variable(N) R
invoke application function (directive)
func function (directive)
trans X R
trans R X
trans Y R
trans R Y
call function
ret
exit
sleep N
push R
pop R
input variable(N)
output R
output endline
lable N (directive)
jmp N
jmpt N R
jmpf N R
or R R
and R R
equ R R
nequ R R
les R R
lequ R R
gre R R
gequ R R
add R R
sub R R
mul R R
div R R
mod R R
neg R
not R