wok-current view syslinux/stuff/iso2exe/mvcom.S @ rev 16939
Up geeqie (1.2)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Jul 23 13:55:35 2014 +0200 (2014-07-23) |
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