wok-next diff syslinux/stuff/iso2exe/libdos.c @ rev 18780

syslinux/isohybrib.exe: check EXE file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 01 21:39:40 2016 +0100 (2016-01-01)
parents 6aed6fc5819d
children fd3dadf90ba9
line diff
     1.1 --- a/syslinux/stuff/iso2exe/libdos.c	Sat Dec 27 17:56:57 2014 +0100
     1.2 +++ b/syslinux/stuff/iso2exe/libdos.c	Fri Jan 01 21:39:40 2016 +0100
     1.3 @@ -189,3 +189,27 @@
     1.4  		mov	_versiondos, ax
     1.5  #endasm
     1.6  }
     1.7 +
     1.8 +void copycmdline(char store[])
     1.9 +{
    1.10 +#asm
    1.11 +		push	si
    1.12 +		push	di
    1.13 +		push	ds
    1.14 +		pop	es
    1.15 +		mov	si, #0x81
    1.16 +space:
    1.17 +		seg	cs
    1.18 +		lodsb
    1.19 +		cmp	al, #0x20
    1.20 +		je	space
    1.21 +		dec	si
    1.22 +		mov	di, [bp+4]
    1.23 +		mov	cx, #0x80/2
    1.24 +		rep
    1.25 +		 seg	cs
    1.26 +		  movsw
    1.27 +		pop	di
    1.28 +		pop	si
    1.29 +#endasm
    1.30 +}