https://github.com/akkartik/mu/blob/main/linux/114error.subx
1
2
3 == code
4
5
6
7
8
9 error:
10
11 55/push-ebp
12 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . .
13
14
15 68/push "Error: "/imm32
16 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0xc/disp8 .
17
18 e8/call write/disp32
19
20 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32
21
22
23 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0x10/disp8 .
24 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0xc/disp8 .
25
26 e8/call write/disp32
27
28 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32
29
30
31 68/push Newline/imm32
32 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0xc/disp8 .
33
34 e8/call write/disp32
35
36 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32
37
38
39 68/push 1/imm32
40 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 8/disp8 .
41
42 e8/call stop/disp32
43
44 $error:dead-end:
45
46 89/copy 3/mod/direct 4/rm32/esp . . . 5/r32/ebp . .
47 5d/pop-to-ebp
48 c3/return
49
50