Debian Codegraph @

src/momo/stack.md

raw
1 the following document describes the stack machine used to get the correct plural form in ngettext.
2
3 # instructions
4
5 ```
6 op | description
7 ---|--------------------
8 00 | end
9 01 | push imm
10 02 | push N
11 03 | add
12 04 | sub
13 05 | mul
14 06 | div
15 07 | mod
16 08 | cmp eq
17 09 | cmp ne
18 0a | cmp gt
19 0b | cmp lt
20 0c | cmp ge
21 0d | cmp le
22 0e | cmp and
23 0f | cmp or
24 10 | beq off
25 11 | bne off
26 12 | exit
27 ```