https://github.com/akkartik/mu/blob/master/mu-init-test.subx
1
2
3
4
5
6
7 main:
8
9 55/push-ebp
10 89/<- %ebp 4/r32/esp
11
12 50/push-eax
13 56/push-esi
14
15 8b/-> *(ebp+8) 6/r32/esi
16 {
17
18 81 7/subop/compare *esi 1/imm32
19 7e/jump-if-<= break/disp8
20
21 (kernel-string-equal? *(esi+8) "test")
22 3d/compare-eax-and 0/imm32
23 74/jump-if-= break/disp8
24
25 (run-tests)
26
27 8b/-> *Num-test-failures 3/r32/ebx
28 eb/jump $main:end/disp8
29 }
30 $main:end:
31
32 5e/pop-to-esi
33 58/pop-to-eax
34
35 89/<- %esp 5/r32/ebp
36 5d/pop-to-ebp
37 c3/return