From a49bc41365bf6b4f0c006c5fbdcb4b519634c42c Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 1 Sep 2018 15:58:53 -0700 Subject: 4531 - automatically compute segment addresses --- subx/examples/ex1.1.subx | 2 +- subx/examples/ex1.2.subx | 2 +- subx/examples/ex2.subx | 2 +- subx/examples/ex3.subx | 2 +- subx/examples/ex4.subx | 2 +- subx/examples/ex5.subx | 2 +- subx/examples/ex6.subx | 2 +- subx/examples/ex7.subx | 2 +- subx/examples/ex8.subx | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to 'subx/examples') 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 -- cgit 1.4.1-2-gfad0