diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-05-28 21:25:25 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-05-28 21:25:25 -0700 |
commit | 16cf82732affd9fe7bfc34f354ee8675b0668265 (patch) | |
tree | d4bce78fd5e94110ac10a51b76002b7dacc267b9 /apps | |
parent | dce349f52c40a16c78ca68e300278605998d5d32 (diff) | |
download | mu-16cf82732affd9fe7bfc34f354ee8675b0668265.tar.gz |
6417
Diffstat (limited to 'apps')
-rw-r--r-- | apps/cat.mu | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/cat.mu b/apps/cat.mu new file mode 100644 index 00000000..0fb68653 --- /dev/null +++ b/apps/cat.mu @@ -0,0 +1,8 @@ +# accept a filename on the commandline, read it and print it out to screen +# only ascii right now, just like the rest of Mu + +fn main _args: (addr array (addr array byte)) -> exit-status/ebx: int { + var args/eax: (addr array (addr array byte)) <- copy _args + var n/eax: int <- length args + exit-status <- copy n +} |