https://github.com/akkartik/mu/blob/master/run_one_test.subx
1
2
3 == code
4
5
6
7
8 Entry:
9
10
11 68/push Heap/imm32
12 68/push 0x10000/imm32/64KB
13
14 e8/call new-segment/disp32
15
16 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32
17
18
19 68/push 0x40000/imm32/256KB
20
21 e8/call initialize-trace-stream/disp32
22
23 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32
24
25 e8/call $TEST_NAME/disp32
26 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32
27 b8/copy-to-eax 1/imm32/exit
28 cd/syscall 0x80/imm8
29
30