From 7817fdb29c46419e22ddcbd9f75a5be6308c9776 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 12 Jul 2020 16:37:58 -0700 Subject: 6640 Re-sync markdown files with mu-normie fork. --- subx.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'subx.md') diff --git a/subx.md b/subx.md index b1ab38bc..bd9f9d1f 100644 --- a/subx.md +++ b/subx.md @@ -6,16 +6,16 @@ is implemented in SubX and also emits SubX code. Here's an example program in SubX that adds 1 and 1 and returns the result to the parent shell process: - ```sh - == code - Entry: - # ebx = 1 - bb/copy-to-ebx 1/imm32 - # increment ebx - 43/increment-ebx - # exit(ebx) - e8/call syscall_exit/disp32 - ``` +```sh +== code +Entry: + # ebx = 1 + bb/copy-to-ebx 1/imm32 + # increment ebx + 43/increment-ebx + # exit(ebx) + e8/call syscall_exit/disp32 +``` ## The syntax of SubX instructions @@ -78,9 +78,9 @@ simpler. It comes from exactly one of the following argument types: Putting all this together, here's an example that adds the integer in `eax` to the one at address `edx`: - ``` - 01/add %edx 0/r32/eax - ``` +``` +01/add %edx 0/r32/eax +``` ## The syntax of SubX programs -- cgit 1.4.1-2-gfad0