From ae27d1b693dc88430ed9aa0594d9324e4ed40da3 Mon Sep 17 00:00:00 2001 From: "tim.newsham" Date: Sun, 4 May 2008 22:22:20 +0000 Subject: [PATCH] - some more instructions. --- tools/as | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tools/as b/tools/as index 9779a6c..e927b77 100755 --- a/tools/as +++ b/tools/as @@ -3,9 +3,27 @@ # use the v7 assembler to assemble some userland code into an 0405 binary. # Requires the first .s file to set ". = . + 40014". # +# example, mount.s: +# exit = 1. +# write = 4. +# mount = 21. +# . = . + 40014 +# +# mov $1,r0 +# sys write; rk0; 8. +# sys write; usr; 4. +# sys mount; rk0; usr +# sys exit +# sys exit +# +# rk0: +# usr: +# +# $ tools/as mount.s +# $ cp b.out mymount +# . tools/assemv7.cfg export APOUT_ROOT $APOUT $APOUT_ROOT/bin/as "$@" && tools/fixaout.py -