wok view syslinux/stuff/iso2exe/mvcom.S @ rev 14267

syslinux/iso2exe: add boot error message
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 02 08:37:23 2013 +0200 (2013-04-02)
parents a26ba54f3ea7
children 353dc1b968e5
line source
1 .text
2 .code16
4 ORGCOM = 0x100
6 .org 0
8 .globl _start
9 _start:
10 movw $0, %si // .com size
11 movw $0, %bx // .com loc
12 #if 1
13 // Move up EXE/PE and DOS/COM to ensure that bootiso[]
14 // in EXE/PE will not be affected by the DOS/COM move.
15 pushw %si
16 leaw 1-64-256(%bx,%si), %cx
17 leaw (%bx,%si), %si
18 movw $0xF000, %di // Keep 4K for stack
19 cmpw %si, %di
20 jc skip
21 std
22 rep
23 movsb
24 subw %si, %di
25 addw %di, %bx
26 skip:
27 popw %si
28 #endif
29 movw $done-install, %cx
30 leaw (%bx,%si), %di
31 pushw %si
32 call move
33 install:
34 popw %cx
35 movw $ORGCOM, %di
36 pushw %bx
37 move:
38 popw %si
39 pushw %di
40 cld
41 rep
42 movsb
43 ret
44 done:
45 // .org 64