diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-08-30 01:15:45 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-08-30 01:15:45 -0700 |
commit | f1b3d7b96749165d771b279b56cc05447b7db3e0 (patch) | |
tree | 0b9ce4b47746827ac9703bdf10d4976c98ae058d /subx/run | |
parent | 51e3e6cec3aea2589513e946f187d9c4bc8eadb3 (diff) | |
download | mu-f1b3d7b96749165d771b279b56cc05447b7db3e0.tar.gz |
4527 - reading commandline arguments
The new example ex9 doesn't yet work natively. In the process I've emulated the kernel's role in providing args, implemented a couple of instructions acting on 8-bit operands (useful for ASCII string operations), and begun the start of the standard library (ascii_length is the same as strlen). At the level of SubX we're just only going to support ASCII.
Diffstat (limited to 'subx/run')
-rwxr-xr-x | subx/run | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/run b/subx/run index cd484787..277ce6d6 100755 --- a/subx/run +++ b/subx/run @@ -3,9 +3,9 @@ if [ $# -eq 0 ] then - echo "run <binary>" + echo "run <binary> <args>" exit 1 fi -CFLAGS=-g subx run $1 +CFLAGS=-g subx run $* exit $? |