about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-08-01 21:31:32 -0700
committerKartik Agaram <vc@akkartik.com>2019-08-01 21:31:32 -0700
commit4ea0d46109442adcee2a38beacafa4d14b3e694d (patch)
tree590b70d61b9de2ebd014b0cfcdae4a06bf78d2c3
parent75f0d196adfb0a9b0bda35178a1f56a8f07736f7 (diff)
downloadmu-4ea0d46109442adcee2a38beacafa4d14b3e694d.tar.gz
5501
-rw-r--r--Readme.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/Readme.md b/Readme.md
index d2ddd157..40089b09 100644
--- a/Readme.md
+++ b/Readme.md
@@ -229,10 +229,10 @@ them.
 In the last three cases, one exception occurs when the `/rm32` argument
 contains `4`. Rather than encoding register `ESP`, it means the address is
 provided by three _whole new_ arguments (`/base`, `/index` and `/scale`) in a
-_totally_ different way:
+_totally_ different way (where `<<` is the left-shift operator):
 
   ```
-  reg/mem = *(/base + /index * (2 ^ /scale))
+  reg/mem = *(base + (index << scale))
   ```
 
 (There are a couple more exceptions ☹; see [Table 2-2](modrm.pdf) and [Table 2-3](sib.pdf)