about summary refs log tree commit diff stats
path: root/baremetal
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-11 23:19:43 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-11 23:19:43 -0800
commitf6075374f595db87651d62d414b5185d66120ab4 (patch)
tree6cce943f7c926fa48c6b2593542a91e6c0034187 /baremetal
parentf66866c7566dcbdb55145976c289280abd6be8d2 (diff)
downloadmu-f6075374f595db87651d62d414b5185d66120ab4.tar.gz
7496
Diffstat (limited to 'baremetal')
-rw-r--r--baremetal/112read-byte.subx4
1 files changed, 4 insertions, 0 deletions
diff --git a/baremetal/112read-byte.subx b/baremetal/112read-byte.subx
index e8731044..73ea3c87 100644
--- a/baremetal/112read-byte.subx
+++ b/baremetal/112read-byte.subx
@@ -1,3 +1,7 @@
+#   instruction                     effective address                                                   register    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
+
 # TODO: read-byte-buffered
 
 # Return next byte value in eax, with top 3 bytes cleared.