diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-15 22:59:02 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-15 22:59:02 -0700 |
commit | 1f56ac6483f97ab18245c69c8c006be158c18a8d (patch) | |
tree | 85006b281492a4e5504a32cb7b4a54943c984942 /subx/ex1.2.subx | |
parent | e1fcc521be3d2ec9e379b3baa974cb805386496d (diff) | |
download | mu-1f56ac6483f97ab18245c69c8c006be158c18a8d.tar.gz |
4350
Reorganize layers to introduce the translation workflow right at the start. We also avoid duplicating parsing code. Programs are always parsed into the `program` data structure.
Diffstat (limited to 'subx/ex1.2.subx')
-rw-r--r-- | subx/ex1.2.subx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/ex1.2.subx b/subx/ex1.2.subx index cc8b55da..03b7ea9c 100644 --- a/subx/ex1.2.subx +++ b/subx/ex1.2.subx @@ -4,6 +4,7 @@ # $ subx translate ex1.2.subx ex1 # $ subx run ex1 +== 0x08048054 # code segment, after leaving room for ELF header # opcode ModR/M SIB displacement immediate # instruction mod, reg, Reg/Mem bits scale, index, base # 1-3 bytes 0/1 byte 0/1 byte 0/1/2/4 bytes 0/1/2/4 bytes |