about summary refs log tree commit diff stats
path: root/036labels.cc
Commit message (Collapse)AuthorAgeFilesLines
* 7455Kartik Agaram2020-12-281-2/+15
| | | | | | | | | | New approach to disambiguating /disp32 arguments: based on opcodes rather than metadata. I interpret /disp32 as PC-relative in a short list of instructions. Otherwise it's absolute if it gets a label. There should be no reason to pass labels into /disp8 or /disp16.
* 7454Kartik Agaram2020-12-281-3/+0
| | | | Go back to commit 7448.
* 7449Kartik Agaram2020-12-281-0/+3
| | | | | | | | | | | | | | | | | | | | There's an ambiguity in how x86 interprets disp32 fields: - For jumps and calls they're displacements from the starting address of the next instruction. So far so good. - However, when the ModR/M requires them they can also be absolute addresses. Ideally I'd take the presence of the ModR/M byte into account in interpreting them. However, it's easier to assume relative addressing only for labels in the code segment. This commit raises an error if we ever refer to labels in the code segment in instructions with a ModR/M byte. (I'm assuming that no instruction with a ModR/M byte will ever use a displacement without the ModR/M byte requiring it.)
* 6887Kartik Agaram2020-09-271-13/+13
| | | | | subx.md distinguishes between operands and arguments. Let's use that terminology more consistently in the sources.
* 5892Kartik Agaram2020-01-141-1/+1
|
* 5865Kartik Agaram2020-01-021-4/+4
| | | | Give the bootstrap C++ program a less salient name.
* 5670Kartik Agaram2019-09-191-0/+416
='#n187'>187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241