about summary refs log tree commit diff stats
path: root/subx/ex4.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-15 22:59:02 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-15 22:59:02 -0700
commit1f56ac6483f97ab18245c69c8c006be158c18a8d (patch)
tree85006b281492a4e5504a32cb7b4a54943c984942 /subx/ex4.subx
parente1fcc521be3d2ec9e379b3baa974cb805386496d (diff)
downloadmu-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/ex4.subx')
-rw-r--r--subx/ex4.subx1
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/ex4.subx b/subx/ex4.subx
index 303cba1e..378b1a35 100644
--- a/subx/ex4.subx
+++ b/subx/ex4.subx
@@ -1,5 +1,6 @@
 ## read a character from stdin
 
+== 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