diff options
-rw-r--r-- | subx/ex2.subx | 4 | ||||
-rw-r--r-- | subx/ex3.subx | 4 | ||||
-rw-r--r-- | subx/ex4.subx | 4 | ||||
-rw-r--r-- | subx/ex5.subx | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/subx/ex2.subx b/subx/ex2.subx index aa1bcbf4..de63f12e 100644 --- a/subx/ex2.subx +++ b/subx/ex2.subx @@ -1,4 +1,8 @@ ## add 1 and 1 +# +# To run: +# $ subx translate ex2.subx ex2 +# $ subx run ex2 == 0x08048054 # code segment, after leaving room for ELF header # opcode ModR/M SIB displacement immediate diff --git a/subx/ex3.subx b/subx/ex3.subx index 39bcf3e2..00ca234f 100644 --- a/subx/ex3.subx +++ b/subx/ex3.subx @@ -1,4 +1,8 @@ ## add the first 10 numbers +# +# To run: +# $ subx translate ex3.subx ex3 +# $ subx run ex3 == 0x08048054 # code segment, after leaving room for ELF header # opcode ModR/M SIB displacement immediate diff --git a/subx/ex4.subx b/subx/ex4.subx index 256f47a5..af0ef419 100644 --- a/subx/ex4.subx +++ b/subx/ex4.subx @@ -1,4 +1,8 @@ ## read a character from stdin, save it to a global, write it to stdout +# +# To run: +# $ subx translate ex4.subx ex4 +# $ subx run ex4 == 0x08048074 # code segment, after leaving room for ELF header and segment headers # opcode ModR/M SIB displacement immediate diff --git a/subx/ex5.subx b/subx/ex5.subx index f7411939..be7266a4 100644 --- a/subx/ex5.subx +++ b/subx/ex5.subx @@ -1,4 +1,8 @@ ## read a character from stdin, save it to a local on the stack, write it to stdout +# +# To run: +# $ subx translate ex5.subx ex5 +# $ subx run ex5 == 0x08048054 # code segment, after leaving room for ELF header and segment headers # opcode ModR/M SIB displacement immediate |