mirror of
https://github.com/DoctorWkt/unix-jun72.git
synced 2026-04-12 15:16:44 +00:00
- some more instructions.
This commit is contained in:
20
tools/as
20
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: </dev/rk0\0>
|
||||
# usr: </usr\0>
|
||||
#
|
||||
# $ tools/as mount.s
|
||||
# $ cp b.out mymount
|
||||
#
|
||||
|
||||
. tools/assemv7.cfg
|
||||
export APOUT_ROOT
|
||||
$APOUT $APOUT_ROOT/bin/as "$@" && tools/fixaout.py
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user