wok-6.x rev 21989
fasm: build fasmarm
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 15 18:06:41 2019 +0200 (2019-10-15) |
parents | 624fa0648f2e |
children | 696b6cd2e651 |
files | fasm/receipt linld/stuff/src/pipehole.awk |
line diff
1.1 --- a/fasm/receipt Tue Oct 15 10:14:15 2019 +0200 1.2 +++ b/fasm/receipt Tue Oct 15 18:06:41 2019 +0200 1.3 @@ -30,6 +30,7 @@ 1.4 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/doc/fasm 1.5 cd $src/source/Linux 1.6 ../../fasm fasm.asm $DESTDIR/usr/bin/fasm 1.7 + sed -i '/al,8Ah/{Nx}/check_for_used/{px}' ../exprcalc.inc 1.8 ../../fasm fasmarm.asm $DESTDIR/usr/bin/fasmarm 1.9 cp ../../*.txt $DESTDIR/usr/share/doc/fasm 1.10 }
2.1 --- a/linld/stuff/src/pipehole.awk Tue Oct 15 10:14:15 2019 +0200 2.2 +++ b/linld/stuff/src/pipehole.awk Tue Oct 15 18:06:41 2019 +0200 2.3 @@ -11,6 +11,11 @@ 2.4 if (/add si,2/) $0=" lodsw ; " $0 2.5 if (/add si,4/) { print " lodsw"; $0=" lodsw ; " $0 } 2.6 if (/add di,2/) $0=" scasw ; " $0 2.7 + if (/int argc/) istazboot=1 2.8 + if (istazboot == 1) { 2.9 + if (/push.*i$/) $0="; " $0 2.10 + if (/word ptr/) { istazboot=0; $0="; " $0 } 2.11 + } 2.12 } # file == "tazboot.cpp" 2.13 if (file == "linld.cpp") { 2.14 if (/add si,2/) $0=" lodsw ; " $0