diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-04-10 01:40:43 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-04-10 01:40:43 -0700 |
commit | 4098359e509a019ee6589c8a8ad2bc145866cd9e (patch) | |
tree | 3cd4f54f4c2c19d36f803b7eab79d96149c6b375 | |
parent | fd3a5cc359016f0cc61b994e6a8dfd5f33f7df1e (diff) | |
download | mu-4098359e509a019ee6589c8a8ad2bc145866cd9e.tar.gz |
5069
-rw-r--r-- | subx/Readme.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/subx/Readme.md b/subx/Readme.md index 1187a6d6..47ba04ee 100644 --- a/subx/Readme.md +++ b/subx/Readme.md @@ -140,7 +140,7 @@ them. - 6 means register `ESI` - 7 means register `EDI` -* If `/mod` is `0`: the operand is the the address provided in the register +* If `/mod` is `0`: the operand is the address provided in the register described by `/rm32`. That's `*rm32` in C syntax. * If `/mod` is `1`: the operand is the address provided by adding the register @@ -148,7 +148,7 @@ them. syntax. * If `/mod` is `2`: the operand is the address provided by adding the register - in `r/m` with the (4-byte) displacement. That's `*(r/m + disp32)` in C + in `/rm32` with the (4-byte) displacement. That's `*(/rm32 + disp32)` in C syntax. In the last three cases, one exception occurs when the `/rm32` argument @@ -184,11 +184,11 @@ and digest it: be? Can you think of another approach?) 1. To read from `*(EAX+ECX+1000)`, one approach would be: - - `mod`: `2` (indirect + disp32) - - `r/m`: `4` (`/base`, `/index` and `/scale` arguments required) - - `base`: `0` (EAX) - - `index`: `1` (ECX) - - `displacement`: 4 bytes containing `1000` + - `/mod`: `2` (indirect + disp32) + - `/rm32`: `4` (`/base`, `/index` and `/scale` arguments required) + - `/base`: `0` (EAX) + - `/index`: `1` (ECX) + - `/disp32`: 4 bytes containing `1000` ## Putting it all together |