about summary refs log tree commit diff stats
path: root/subx/examples
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-01 15:58:53 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-01 20:10:06 -0700
commita49bc41365bf6b4f0c006c5fbdcb4b519634c42c (patch)
tree664075c7652dfe7eb75cfdb6c54e7b226215bc2d /subx/examples
parent6ff9ce26e84f686a96ada723f63ce95879216cca (diff)
downloadmu-a49bc41365bf6b4f0c006c5fbdcb4b519634c42c.tar.gz
4531 - automatically compute segment addresses
Diffstat (limited to 'subx/examples')
-rw-r--r--subx/examples/ex1.1.subx2
-rw-r--r--subx/examples/ex1.2.subx2
-rw-r--r--subx/examples/ex2.subx2
-rw-r--r--subx/examples/ex3.subx2
-rw-r--r--subx/examples/ex4.subx2
-rw-r--r--subx/examples/ex5.subx2
-rw-r--r--subx/examples/ex6.subx2
-rw-r--r--subx/examples/ex7.subx2
-rw-r--r--subx/examples/ex8.subx2
9 files changed, 9 insertions, 9 deletions
diff --git a/subx/examples/ex1.1.subx b/subx/examples/ex1.1.subx
index 1cbe5dc1..56b54a10 100644
--- a/subx/examples/ex1.1.subx
+++ b/subx/examples/ex1.1.subx
@@ -8,7 +8,7 @@
 #   $ echo $?
 #   42
 
-== 0x08048054  # code segment, after leaving room for ELF header
+== code
 # 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
diff --git a/subx/examples/ex1.2.subx b/subx/examples/ex1.2.subx
index 2652037a..7dca4ec3 100644
--- a/subx/examples/ex1.2.subx
+++ b/subx/examples/ex1.2.subx
@@ -8,7 +8,7 @@
 #   $ echo $?
 #   42
 
-== 0x08048054  # code segment, after leaving room for ELF header
+== code
 # instruction                     effective address                                                   operand     displacement    immediate
 # op          subop               mod             rm32          base        index         scale       r32
 # 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
diff --git a/subx/examples/ex2.subx b/subx/examples/ex2.subx
index 6463132b..0aad9232 100644
--- a/subx/examples/ex2.subx
+++ b/subx/examples/ex2.subx
@@ -7,7 +7,7 @@
 #   $ echo $?
 #   2
 
-== 0x08048054  # code segment, after leaving room for ELF header
+== code
 # instruction                     effective address                                                   operand     displacement    immediate
 # op          subop               mod             rm32          base        index         scale       r32
 # 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
diff --git a/subx/examples/ex3.subx b/subx/examples/ex3.subx
index a4012f92..eb4d6c01 100644
--- a/subx/examples/ex3.subx
+++ b/subx/examples/ex3.subx
@@ -7,7 +7,7 @@
 #   $ echo $?
 #   55
 
-== 0x08048054  # code segment, after leaving room for ELF header
+== code
 # instruction                     effective address                                                   operand     displacement    immediate
 # op          subop               mod             rm32          base        index         scale       r32
 # 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx
index cd7003d3..2f5b0e73 100644
--- a/subx/examples/ex4.subx
+++ b/subx/examples/ex4.subx
@@ -4,7 +4,7 @@
 #   $ subx translate ex4.subx ex4
 #   $ subx run ex4
 
-== 0x08048074  # code segment, after leaving room for ELF header and segment headers
+== code
 # instruction                     effective address                                                   operand     displacement    immediate
 # op          subop               mod             rm32          base        index         scale       r32
 # 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
diff --git a/subx/examples/ex5.subx b/subx/examples/ex5.subx
index e4a2db81..400e17c3 100644
--- a/subx/examples/ex5.subx
+++ b/subx/examples/ex5.subx
@@ -4,7 +4,7 @@
 #   $ subx translate ex5.subx ex5
 #   $ subx run ex5
 
-== 0x08048054  # code segment, after leaving room for ELF header and segment headers
+== code
 # instruction                     effective address                                                   operand     displacement    immediate
 # op          subop               mod             rm32          base        index         scale       r32
 # 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
diff --git a/subx/examples/ex6.subx b/subx/examples/ex6.subx
index 4c75c617..3d05f00a 100644
--- a/subx/examples/ex6.subx
+++ b/subx/examples/ex6.subx
@@ -5,7 +5,7 @@
 #   $ subx run ex6
 #   Hello, world!
 
-== 0x08048074  # code segment, after leaving room for ELF header and segment headers
+== code
 # instruction                     effective address                                                   operand     displacement    immediate
 # op          subop               mod             rm32          base        index         scale       r32
 # 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
diff --git a/subx/examples/ex7.subx b/subx/examples/ex7.subx
index 6f8d3979..17a38e29 100644
--- a/subx/examples/ex7.subx
+++ b/subx/examples/ex7.subx
@@ -10,7 +10,7 @@
 #   $ echo $?
 #   97
 
-== 0x08048074  # code segment, after leaving room for ELF header and segment headers
+== code
 # instruction                     effective address                                                   operand     displacement    immediate
 # op          subop               mod             rm32          base        index         scale       r32
 # 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
diff --git a/subx/examples/ex8.subx b/subx/examples/ex8.subx
index 9ea547f1..452b917d 100644
--- a/subx/examples/ex8.subx
+++ b/subx/examples/ex8.subx
@@ -14,7 +14,7 @@
 #   ...
 # Locals start from ESP-4 downwards.
 
-== 0x08048054  # code segment, after leaving room for ELF header and segment headers
+== code
 # instruction                     effective address                                                   operand     displacement    immediate
 # op          subop               mod             rm32          base        index         scale       r32
 # 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes