about summary refs log tree commit diff stats
path: root/subx/ex2.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-08-03 23:23:39 -0700
committerKartik Agaram <vc@akkartik.com>2018-08-03 23:23:39 -0700
commit12adb3da8a8979c207b2e7fd17bdb05bacefeb44 (patch)
tree12c1a96ffe7feb8b41613e0b2cead1c3919db8d9 /subx/ex2.subx
parent85173b622021de062706df81947df7ae2300b654 (diff)
downloadmu-12adb3da8a8979c207b2e7fd17bdb05bacefeb44.tar.gz
4467
Diffstat (limited to 'subx/ex2.subx')
-rw-r--r--subx/ex2.subx14
1 files changed, 7 insertions, 7 deletions
diff --git a/subx/ex2.subx b/subx/ex2.subx
index 20cee840..c63b7eb6 100644
--- a/subx/ex2.subx
+++ b/subx/ex2.subx
@@ -8,13 +8,13 @@
 #   2
 
 == 0x08048054  # code segment, after leaving room for ELF header
-# instruction                     effective address                                           operand     displacement    immediate
-# op          subop               mod             rm32          base      index     scale     r32
-# 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
-  bb/copy                                                                                                                 1/imm32           # copy 1 to EBX
-  81          0/subop/add         3/mod/direct    3/rm32/ebx                                                              1/imm32           # add 1 to EBX
+# instruction                     effective address                                                   operand     displacement    immediate
+# op          subop               mod             rm32          base        index         scale       r32
+# 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
+  bb/copy                                                                                                                         1/imm32           # copy 1 to EBX
+  81          0/subop/add         3/mod/direct    3/rm32/ebx                                                                      1/imm32           # add 1 to EBX
   # exit(EBX)
-  b8/copy                                                                                                                 1/imm32           # copy 1 to EAX
-  cd/syscall                                                                                                              0x80/imm8         # int 80h
+  b8/copy                                                                                                                         1/imm32           # copy 1 to EAX
+  cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
 # vim:ft=subx