# HG changeset patch # User Pascal Bellard # Date 1393703672 0 # Node ID 45e76a6c05d72fbebdeccba878d6d9cca0509f62 # Parent 3f0b08dbc9d3d0464e117bd0cc26cdfa3c4fe8c3 syslinux-tools: add meminfo.exe (again) diff -r 3f0b08dbc9d3 -r 45e76a6c05d7 syslinux/stuff/iso2exe/meminfo.S --- a/syslinux/stuff/iso2exe/meminfo.S Sat Mar 01 19:10:36 2014 +0000 +++ b/syslinux/stuff/iso2exe/meminfo.S Sat Mar 01 19:54:32 2014 +0000 @@ -119,9 +119,29 @@ movw $configured, %si call pute801 call pute801 -fail2: movb $10, %al call putc +fail2: + movw $8, %cx + movw $buffer, %di + pushw %di + xorw %ax, %ax + rep + stosw + movb $0x88, %ah + int $0x15 + popw %di + jc fail3 + movb $0x10, 0+2(%di) // 1M + shrw $6, %ax // 1K -> 64K + jz fail3 + addw $0x10, %ax + movw %ax, 8+2(%di) + movw $header_0088, %si + call puts64 + movb $10, %al + call putc +fail3: retf puts64: @@ -175,6 +195,10 @@ int $0x10 ret +header_0088: + .byte 13,10 + .ascii "BIOS-0088: " + .byte 0 header_e801: .byte 13,10 .ascii "BIOS-e801: "