From 4ea0d46109442adcee2a38beacafa4d14b3e694d Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 1 Aug 2019 21:31:32 -0700 Subject: 5501 --- Readme.md | 4 ++-- 1 file 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) -- cgit 1.4.1-2-gfad0