diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-11-30 10:35:03 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-11-30 10:35:03 -0800 |
commit | 2b7ba2a56ab621245c2dae41949dcc515b829c68 (patch) | |
tree | bed0871f07903068d3866c679ec345ccb391a24e | |
parent | dc70e29c2018181e1e7270153e4e4bbc888a357f (diff) | |
download | mu-2b7ba2a56ab621245c2dae41949dcc515b829c68.tar.gz |
4799
-rw-r--r-- | subx/apps/crenshaw2-1b.subx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subx/apps/crenshaw2-1b.subx b/subx/apps/crenshaw2-1b.subx index 398abae6..c6b18216 100644 --- a/subx/apps/crenshaw2-1b.subx +++ b/subx/apps/crenshaw2-1b.subx @@ -3,8 +3,8 @@ # except that we support numbers of multiple digits. # # To run (from the subx directory): -# $ ./subx translate *.subx apps/crenshaw2-1.subx -o crenshaw2-1 -# $ echo '1a' |./subx run apps/crenshaw2-1 +# $ ./subx translate *.subx apps/crenshaw2-1b.subx -o crenshaw2-1b +# $ echo '1a' |./subx run apps/crenshaw2-1b # Expected output: # # syscall(exit, 1a) # bb/copy-to-EBX 3/imm32 @@ -12,14 +12,14 @@ # cd/syscall 0x80/imm8 # # To run the generated output: -# $ echo '1a' |./subx run apps/crenshaw2-1 > z1.subx +# $ echo '1a' |./subx run apps/crenshaw2-1b > z1.subx # $ ./subx translate z1.subx -o z1 # $ ./subx run z1 # $ echo $? # 26 # 0x1a in decimal # # Stdin must contain just a single hex digit. Other input will print an error: -# $ echo 'xyz' |./subx run apps/crenshaw2-1 +# $ echo 'xyz' |./subx run apps/crenshaw2-1b # Error: integer expected # # Names in this file sometimes follow Crenshaw's original rather than my usual |