-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstant.yml
92 lines (85 loc) · 1.29 KB
/
constant.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
:instructions:
:nil : 0x00
## @Category: Common Ops
:move : 0x01
:test : 0x02
:call : 0x03
:ret : 0x04
:term : 0x05
:intr : 0x06
## @Category: Arithmetic Ops
:add : 0x11
:sub : 0x12
:mul : 0x13
:div : 0x14
:inc : 0x15
:dec : 0x16
## @Category: Jump Ops
:jmp : 0x21
:cmp : 0x22
:jz : 0x23
:jnz : 0x24
:jc : 0x25
:jnc : 0x26
## @Category: Bit Ops
:band : 0x31
:bor : 0x32
:bnot : 0x33
:bnor : 0x34
:bnand: 0x35
:bxor : 0x36
## @Category: Stack Ops
:push : 0x41
:pop : 0x42
## @Category: I/O
:in : 0x51
:out : 0x52
:registers:
:nil : 0
:R0 : 0x00
:R1 : 0x01
:R2 : 0x02
:R3 : 0x03
:R4 : 0x04
:R5 : 0x05
:R6 : 0x06
:R7 : 0x07
:R8 : 0x08
:R9 : 0x09
:R10 : 0x10
:R11 : 0x11
:R12 : 0x12
:R13 : 0x13
:R14 : 0x14
:R15 : 0x15
:instruction : 0x10
:op1 : 0x11
:op2 : 0x12
:op3 : 0x13
:op4 : 0x14
:total : 0x20
:units:
:nil : 0x00
:identi : 0x00
:var : 0x01
:addr : 0x02
:str : 0x03
:reg : 0x04
:relpos : 0x05
:abspos : 0x06
:$ : 0x01
:& : 0x02
:^ : 0x03
:\ : 0x05 ## for function addressing
:@ : 0x06 ## for function call
0 : 0
1 : 1
2 : 2
3 : 3
4 : 4
:weights:
- 8
- 14
- 20
- 26