wok view syslinux/stuff/iso2exe/mvcom.S @ rev 19877
syslinux/iso2exe: fix floppyset
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 31 18:37:37 2017 +0200 (2017-03-31) |
parents | 62104f2454a3 |
children |
line source
1 .text
2 .code16
4 ORGCOM = 0x100
6 .org 0
8 .globl _start
9 _start:
10 movw $0, %cx // .com size
11 movw $0, %si // .com loc
12 movw $0x100, %bx
13 leaw 15(%bx,%si), %di
14 andw $-16, %di
15 addw %cx, %si
16 addw %cx, %di
17 incw %cx
18 std
19 rep
20 movsb
21 incb %ch
22 movw %cx, %si
23 decw %si
24 rep
25 movsb
26 cld
27 movw %cs, %ax
28 movb $4, %cl
29 shrw %cl, %di
30 adcw %di, %ax
31 movw %ax, %ds
32 movw %ax, %es
33 popw %dx
34 movw %ax, %ss
35 pushw %dx
36 pushw %ax
37 pushw %bx
38 retf
39 .ascii "www.slitaz.org"
41 // .org 64