about summary refs log tree commit diff stats
path: root/subx/examples/ex2.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-05 21:30:22 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-05 21:30:22 -0700
commit94ad882e828f83df4a4cc0deab1a10e9d5e54eec (patch)
treef51448732674fa8744e8517c4755255afc764b1f /subx/examples/ex2.subx
parent03d50cc83c7c2bebb2b019667b80c1c51f4a8def (diff)
downloadmu-94ad882e828f83df4a4cc0deab1a10e9d5e54eec.tar.gz
4668
Diffstat (limited to 'subx/examples/ex2.subx')
-rw-r--r--subx/examples/ex2.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/examples/ex2.subx b/subx/examples/ex2.subx
index 800674f1..3035b39f 100644
--- a/subx/examples/ex2.subx
+++ b/subx/examples/ex2.subx
@@ -11,10 +11,10 @@
 # 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 to EBX
+  bb/copy-to-EBX  1/imm32
   43/inc-EBX
   # exit(EBX)
-  b8/copy                         .               .             .           .             .           .           .               1/imm32           # copy to EAX
+  b8/copy-to-EAX  1/imm32
   cd/syscall  0x80/imm8
 
 # vim:nowrap:textwidth=0