about summary refs log tree commit diff stats
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
parent670d94576318ca37f4371410a128c8668bd1c369 (diff)
downloadmu-867894b3efdc9c9df39d8ad9b6011f01e95e2811.tar.gz
5403
-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)
ous revision' href='/tilde/site/blame/tilde.css?id=68cda26a441b18fab6500d79d6f4d86817c63069'>^
30b2e43 ^







7648937 ^

30b2e43 ^


dfd53e4 ^
30b2e43 ^


7648937 ^
30b2e43 ^
6413b70 ^
1d4558c ^

6413b70 ^


6413b70 ^
adb9cc5 ^
1d4558c ^

adb9cc5 ^


adb9cc5 ^
30b2e43 ^





0523d31 ^
30b2e43 ^




30b2e43 ^






1d4558c ^

aed043c ^

30b2e43 ^




7648937 ^
30b2e43 ^



2cff2b4 ^
0523d31 ^
2cff2b4 ^
dfd53e4 ^
0523d31 ^

dfd53e4 ^
f37aa32 ^
0523d31 ^
f37aa32 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107