mirror of
https://github.com/DoctorWkt/unix-jun72.git
synced 2026-01-13 15:27:49 +00:00
- uncomment "read" in sys1.s.
- added tool for building with v7 'as' using apout.
This commit is contained in:
parent
fd8eb82e5b
commit
1f53d27349
2
sys1.s
2
sys1.s
@ -1,7 +1,7 @@
|
||||
rele = 0.
|
||||
exit = 1.
|
||||
fork = 2.
|
||||
/ read = 3.
|
||||
read = 3.
|
||||
write = 4.
|
||||
open = 5.
|
||||
close = 6.
|
||||
|
||||
32
tools/assemv7
Executable file
32
tools/assemv7
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# assemble the sources
|
||||
#
|
||||
|
||||
# settings
|
||||
APOUT=/tmp/apout2.3alpha2/apout
|
||||
APOUT_ROOT=/tmp/v7
|
||||
COLD=1
|
||||
|
||||
export APOUT_ROOT
|
||||
|
||||
tools/rebuild
|
||||
|
||||
# fix "mount" issue which 1ed as cant deal with
|
||||
# and also fix up the vector table in u0.s since
|
||||
# the result is a slightly different format a.out that doesnt
|
||||
# include the header in the text segment
|
||||
test -d build || mkdir build
|
||||
for f in rebuilt/u?.s ; do
|
||||
b=`basename $f`
|
||||
if [ $COLD = 1 ] ; then
|
||||
sed -e 's/.*init by copy.*/4;4;unkni;0;fpsym;0/' \
|
||||
-e 's/cold = 0/cold = 1/' < $f > build/$b
|
||||
else
|
||||
sed -e 's/.*init by copy.*/4;4;unkni;0;fpsym;0/' < $f > build/$b
|
||||
fi
|
||||
done
|
||||
|
||||
cd build
|
||||
$APOUT $APOUT_ROOT/bin/as ../sys1.s u?.s
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user