diff options
author | pommicket <pommicket@gmail.com> | 2021-11-09 20:00:56 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2021-11-09 20:00:56 -0500 |
commit | e3ccf5d976965dbda58db4f7d7ec663ce0b0fdf9 (patch) | |
tree | 98bf1d1630ca1a44b6ee8410e09881750adf5d27 /01 | |
parent | 53c8c9939d2e870ce5d207b9f0ee3d31d613f285 (diff) |
offsets for label definitions, immediates
Diffstat (limited to '01')
-rw-r--r-- | 01/README.md | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/01/README.md b/01/README.md index 1fc5f8c..888454a 100644 --- a/01/README.md +++ b/01/README.md @@ -319,19 +319,18 @@ very end: 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 -00 00 03 00 00 00 00 00 -00 00 03 00 00 00 00 00 +00 00 08 00 00 00 00 00 +00 00 08 00 00 00 00 00 00 10 00 00 00 00 00 00 </code></pre> -This is at the position for `||`, and it contains the ELF header. One thing you +This is at the position for `||`, and it contains an ELF header. One thing you might notice is that we decided that each entry is 8 bytes long, but this one is 0x79 = 121 bytes long! It's okay, our code doesn't actually check that we're using less than 8 bytes of data, but it means that the entries for certain commands, e.g. `}\n` will land right in the middle of the data for the ELF header. But by a lucky coincidence, all those entries actually land on 0 bytes, -so they'll just be treated as unrecognized (as they should be). So it's all -good. +so they'll just be treated as unrecognized (as they should be). ## limitations |