about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-14 15:00:55 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-14 15:00:55 -0700
commit867894b3efdc9c9df39d8ad9b6011f01e95e2811 (patch)
treef69ca29274b2e7d0ef0abc78fc2d4140f8d4e000 /subx
parent670d94576318ca37f4371410a128c8668bd1c369 (diff)
downloadmu-867894b3efdc9c9df39d8ad9b6011f01e95e2811.tar.gz
5403
Diffstat (limited to 'subx')
-rw-r--r--subx/Readme.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/Readme.md b/subx/Readme.md
index 97dca587..5d294629 100644
--- a/subx/Readme.md
+++ b/subx/Readme.md
@@ -162,12 +162,12 @@ them.
   described by `/rm32`. That's `*rm32` in C syntax.
 
 * If `/mod` is `1`: the operand is in the address provided by adding the
-  register in `/rm32` with the (1-byte) displacement. That's `*(rm32 + disp8)`
+  register in `/rm32` with the (1-byte) displacement. That's `*(rm32 + /disp8)`
   in C syntax.
 
 * If `/mod` is `2`: the operand is in the address provided by adding the
   register in `/rm32` with the (4-byte) displacement. That's `*(/rm32 +
-  disp32)` in C syntax.
+  /disp32)` in C syntax.
 
 In the last three cases, one exception occurs when the `/rm32` argument
 contains `4`. Rather than encoding register `ESP`, it means the address is
@@ -175,7 +175,7 @@ provided by three _whole new_ arguments (`/base`, `/index` and `/scale`) in a
 _totally_ different way:
 
   ```
-  reg/mem = *(base + index * 2^scale)
+  reg/mem = *(/base + /index * (2 ^ /scale))
   ```
 
 (There are a couple more exceptions ☹; see [Table 2-2](modrm.pdf) and [Table 2-3](sib.pdf)