|
|
1.1 ! root 1: BUILTINS= ! 2: NPROC=1 ! 3: SYSH=/sys/src/libc/9syscall/sys.h ! 4: ! 5: all:V: ! 6: SYS=`{sed 's/#define.([A-Z0-9_]*).*/\1/' $SYSH} ! 7: for(I in $SYS) { ! 8: n=`{sed -n '/[ ]'$I'[ ]/s/.* //p' $SYSH} ! 9: echo TEXT _$I'(SB)', 1, '$0' > _$I.s ! 10: echo MOVL '$'$n, R0 >> _$I.s ! 11: echo TRAP '$0' >> _$I.s ! 12: echo RTS >> _$I.s ! 13: } ! 14: ! 15: clean:V: ! 16: rm -f _*.s
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.