https://github.com/akkartik/mu/blob/master/examples/ex5.subx
1
2
3
4
5
6
7 == code 0x09000000
8
9
10
11
12 Entry:
13
14
15 81 5/subop/subtract 3/mod/direct 4/rm32/ESP . . . . . 4/imm32
16
17
18
19 bb/copy-to-EBX 0/imm32
20
21 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/ESP 4/index/none 1/r32/ECX 4/disp8 .
22
23 ba/copy-to-EDX 1/imm32
24
25 b8/copy-to-EAX 3/imm32/read
26 cd/syscall 0x80/imm8
27
28
29
30 bb/copy-to-EBX 1/imm32
31
32 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/ESP 4/index/none 1/r32/ECX 4/disp8 .
33
34 ba/copy-to-EDX 1/imm32
35
36 b8/copy-to-EAX 4/imm32/write
37 cd/syscall 0x80/imm8
38
39
40 b8/copy-to-EAX 1/imm32/exit
41 cd/syscall 0x80/imm8
42
43 == data 0x0a000000
44
45