wok-current rev 23864
syslinux/isoboot.s: accept user args (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 19 17:01:11 2020 +0000 (2020-06-19) |
parents | c04335df099f |
children | 3fe6c0591041 |
files | linld/stuff/src/!COMPILE.BAT linld/stuff/src/ISOCRTL.ASM linld/stuff/src/pipehole.awk |
line diff
1.1 --- a/linld/stuff/src/!COMPILE.BAT Fri Jun 19 15:46:21 2020 +0000 1.2 +++ b/linld/stuff/src/!COMPILE.BAT Fri Jun 19 17:01:11 2020 +0000 1.3 @@ -3,12 +3,16 @@ 1.4 tasm /h > helptasm.log 1.5 bcc > helpbcc.log 1.6 tlink > helptlink.log 1.7 -bcc @bccopt.opt -S -mt -DMOVE_SETUP -DUSE_ARGSTR -DLARGE_IMAGES *.cpp > cpp.log 1.8 +bcc @bccopt.opt -S -mt -DISOHOOK -DMOVE_SETUP -DUSE_ARGSTR -DLARGE_IMAGES *.cpp > cpp.log 1.9 ren LINLD.ASM LINLD.ASO 1.10 ren LOAD.ASM LOAD.ASO 1.11 ren HIMEM.ASM HIMEM.ASO 1.12 +ren ISO9660.ASM ISO9660.ASO 1.13 mawk -f pipehole.awk LINLD.ASO > LINLD.ASM 1.14 mawk -f pipehole.awk LOAD.ASO > LOAD.ASM 1.15 mawk -f pipehole.awk HIMEM.ASO > HIMEM.ASM 1.16 -tasm /la /m /dMOVE_SETUP /dUSE_ARGSTR /dNO386 /dLARGE_IMAGES /dLONG_FILENAME *.asm > asm.log 1.17 +mawk -f pipehole.awk ISO9660.ASO > ISO9660.ASM 1.18 +tasm /la /m /dISOHOOK /dMOVE_SETUP /dUSE_ARGSTR /dNO386 /dLARGE_IMAGES /dLONG_FILENAME *.asm > asm.log 1.19 tlink /m /s /t @link.cmd > lnk.log 1.20 +tlink /m /s /t @link2.cmd > lnk2.log 1.21 +tlink /m /s /t @header.cmd > header.log
2.1 --- a/linld/stuff/src/ISOCRTL.ASM Fri Jun 19 15:46:21 2020 +0000 2.2 +++ b/linld/stuff/src/ISOCRTL.ASM Fri Jun 19 17:01:11 2020 +0000 2.3 @@ -70,7 +70,7 @@ 2.4 iso_open: 2.5 mov [_isostate.filename2open],ax 2.6 call @_isoopen$qv 2.7 - cmp ax,1 2.8 + cmp al,1 2.9 cmc 2.10 push bx 2.11 iso_close_hack:
3.1 --- a/linld/stuff/src/pipehole.awk Fri Jun 19 15:46:21 2020 +0000 3.2 +++ b/linld/stuff/src/pipehole.awk Fri Jun 19 17:01:11 2020 +0000 3.3 @@ -203,6 +203,15 @@ 3.4 } 3.5 } # file == "load.cpp" 3.6 if (file == "iso9660.cpp") { 3.7 + if (/while \(\*\+\+s/) isiso=11 3.8 + if (isiso == 11) { # ISO9660.LST 3.9 + if (/cmp/ || /filename2open/) isiso=0 3.10 + if (/cmp/) next 3.11 + if (/mov/) { 3.12 + sub(/mov bx,/,"cmp byte ptr [") 3.13 + sub(/i$/,"i],0") 3.14 + } 3.15 + } 3.16 if (/curpos >= SECT/) isiso=10 3.17 if (isiso == 10) { # ISO9660.LST 3.18 if (/cmp/) {