about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-30 10:00:40 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-30 10:00:40 -0700
commit3da9d2c16b2ce44ad46e6e7706b363f1dafa0af2 (patch)
treed537c24dde4163c76bd69c1472771fb9f93f4ae3 /subx
parentedcb590bf23d77912e6d6d7bb36b8332d705d0b4 (diff)
downloadmu-3da9d2c16b2ce44ad46e6e7706b363f1dafa0af2.tar.gz
4454
Diffstat (limited to 'subx')
-rw-r--r--subx/ex3.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/ex3.subx b/subx/ex3.subx
index 9439b3d3..2ad61edd 100644
--- a/subx/ex3.subx
+++ b/subx/ex3.subx
@@ -18,12 +18,12 @@
 
 loop:
   # while (counter <= 10)
-  81            7/subop/compare   3/mod/direct    1/rm32/ecx                                                              0xa/imm32         # compare ECX, 10/imm
+  81          7/subop/compare     3/mod/direct    1/rm32/ecx                                                              0xa/imm32         # compare ECX, 10/imm
   7f/jump-if                                                                                              exit/disp8                        # jump-if-greater exit
   # result += counter
   01/add                          3/mod/direct    3/rm32/ebx                                  1/r32/ecx                                     # add ECX to EBX
   # ++counter
-  81            0/subop/add       3/mod/direct    1/rm32/ecx                                                              1/imm32           # add 1 to ECX
+  81          0/subop/add         3/mod/direct    1/rm32/ecx                                                              1/imm32           # add 1 to ECX
   # loop
   eb/jump                                                                                                 loop/disp8                        # jump loop