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

syslinux/iso2exe: add partition table
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 01 17:47:04 2013 +0200 (2013-04-01)
parents
children ada914860f33
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 pushw %si
14 leaw 1-64-256(%bx,%si), %cx
15 leaw (%bx,%si), %si
16 movw $0xF000, %di
17 cmpw %si, %di
18 jc skip
19 std
20 rep
21 movsb
22 subw %si, %di
23 addw %di, %bx
24 skip:
25 popw %si
26 #endif
27 movw $done-install, %cx
28 leaw (%bx,%si), %di
29 pushw %si
30 call move
31 install:
32 popw %cx
33 movw $ORGCOM, %di
34 pushw %bx
35 move:
36 popw %si
37 pushw %di
38 cld
39 rep
40 movsb
41 ret
42 done:
43 // .org 64