wok-current rev 15982

syslinux-tools: add meminfo.exe (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 01 19:54:32 2014 +0000 (2014-03-01)
parents 3f0b08dbc9d3
children e68abb67e0b5
files syslinux/stuff/iso2exe/meminfo.S
line diff
     1.1 --- a/syslinux/stuff/iso2exe/meminfo.S	Sat Mar 01 19:10:36 2014 +0000
     1.2 +++ b/syslinux/stuff/iso2exe/meminfo.S	Sat Mar 01 19:54:32 2014 +0000
     1.3 @@ -119,9 +119,29 @@
     1.4  	movw	$configured, %si
     1.5  	call	pute801
     1.6  	call	pute801
     1.7 -fail2:
     1.8  	movb	$10, %al
     1.9  	call	putc
    1.10 +fail2:
    1.11 +	movw	$8, %cx
    1.12 +	movw	$buffer, %di
    1.13 +	pushw	%di
    1.14 +	xorw	%ax, %ax
    1.15 +	rep
    1.16 +	  stosw
    1.17 +	movb	$0x88, %ah
    1.18 +	int	$0x15
    1.19 +	popw	%di
    1.20 +	jc	fail3
    1.21 +	movb	$0x10, 0+2(%di)		// 1M
    1.22 +	shrw	$6, %ax		// 1K -> 64K
    1.23 +	jz	fail3
    1.24 +	addw	$0x10, %ax
    1.25 +	movw	%ax, 8+2(%di)
    1.26 +	movw	$header_0088, %si
    1.27 +	call	puts64
    1.28 +	movb	$10, %al
    1.29 +	call	putc
    1.30 +fail3:
    1.31  	retf
    1.32  
    1.33  puts64:
    1.34 @@ -175,6 +195,10 @@
    1.35  	int	$0x10
    1.36  	ret
    1.37  
    1.38 +header_0088:
    1.39 +	.byte	13,10
    1.40 +	.ascii  "BIOS-0088: "
    1.41 +	.byte	0
    1.42  header_e801:
    1.43  	.byte	13,10
    1.44  	.ascii  "BIOS-e801: "