diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-24 11:53:45 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-24 11:53:45 -0700 |
commit | 7a5106c4f8c6825dc1b42ee05e5859e62b6d2a10 (patch) | |
tree | 06f45b78b950e522c6a564e9f8239cf92688719f /subx | |
parent | 1d35e3370647a65937c4d6b5a8bb1bc5e8aac70d (diff) | |
download | mu-7a5106c4f8c6825dc1b42ee05e5859e62b6d2a10.tar.gz |
4392
Diffstat (limited to 'subx')
-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 |