diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-14 15:00:55 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-14 15:00:55 -0700 |
commit | 867894b3efdc9c9df39d8ad9b6011f01e95e2811 (patch) | |
tree | f69ca29274b2e7d0ef0abc78fc2d4140f8d4e000 | |
parent | 670d94576318ca37f4371410a128c8668bd1c369 (diff) | |
download | mu-867894b3efdc9c9df39d8ad9b6011f01e95e2811.tar.gz |
5403
-rw-r--r-- | subx/Readme.md | 6 |
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) |