wok-current view syslinux/stuff/iso2exe/mvcom.S @ rev 18493
Add atril
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Sun Oct 11 00:10:26 2015 -0300 (2015-10-11) |
parents | ada914860f33 |
children | 62104f2454a3 |
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 .ascii "(www.slitaz.org)"
47 // .org 64