about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-28 21:25:25 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-28 21:25:25 -0700
commit16cf82732affd9fe7bfc34f354ee8675b0668265 (patch)
treed4bce78fd5e94110ac10a51b76002b7dacc267b9 /apps
parentdce349f52c40a16c78ca68e300278605998d5d32 (diff)
downloadmu-16cf82732affd9fe7bfc34f354ee8675b0668265.tar.gz
6417
Diffstat (limited to 'apps')
-rw-r--r--apps/cat.mu8
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
+}