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

Add gnubg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 22 21:29:18 2016 +0100 (2016-02-22)
parents 353dc1b968e5
children bd7250c6c521
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 incw %di
28 shrw $4, %di // 186
29 movw %cs, %ax
30 addw %di, %ax
31 movw %ax, %ds
32 movw %ax, %es
33 movw %ax, %ss
34 popw %dx
35 pushw %cx
36 pushw %ax
37 pushw %bx
38 retf
39 .ascii "www.slitaz.org"
41 // .org 64