https://github.com/akkartik/mu/blob/main/linux/102test.subx
  1 # Rudimentary test harness
  2 
  3 == code
  4 #   instruction                     effective address                                                   register    displacement    immediate
  5 # . op          subop               mod             rm32          base        index         scale       r32
  6 # . 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
  7 
  8 Entry:  # manual test
  9     # check-ints-equal(34, 34)
 10     # . . push args
 11     68/push  "error in check-ints-equal"/imm32
 12     68/push  34/imm32
 13     68/push  34/imm32
 14     # . . call
 15     e8/call  check-ints-equal/disp32
 16     # . . discard args
 17     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               0xc/imm32         # add to esp
 18     
---
name: Feature Request
about: Suggest new features for getwtxt!
title: "[REQUEST]"
labels: enhancement
assignees: gbmor

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
ass="Normal"> . . . . 8/imm32 # add to esp 66 # increment Num-test-failures 67 ff 0/subop/increment 0/mod/indirect 5/rm32/.disp32 . . . Num-test-failures/disp32 # increment *Num-test-failures 68 $check-ints-equal:end: 69 # . restore registers 70 5b/pop-to-ebx 71 59/pop-to-ecx 72 58/pop-to-eax 73 # . epilogue 74 89/copy 3/mod/direct 4/rm32/esp . . . 5/r32/ebp . . # copy ebp to esp 75 5d/pop-to-ebp 76 c3/return 77 78 == data 79 80 # length-prefixed string containing just a single newline 81 # convenient to have when printing messages and so on 82 Newline: # (array byte) 83 # size: int 84 1/imm32 85 # data 86 0a/newline 87 88 # every test failure increments this counter 89 Num-test-failures: # int 90 0/imm32 91 92 # length-prefixed string containing just a single space 93 Space: # (array byte) 94 # size: int 95 1/imm32 96 # data 97 20/space 98 99 # length-prefixed string containing just a single slash 100 Slash: # (array byte) 101 # size: int 102 1/imm32 103 # data 104 2f/slash 105 106 # . . vim:nowrap:textwidth=0