summaryrefslogtreecommitdiff
path: root/sample/c32entry.S
blob: 251838d4274741ccf2aed1d36d7d068aed9ec85c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
		.section ".text","ax"
		.globl _start
_start:
		# This first instruction acts as COM32 magic number
		movl $0x21cd4cff,%eax
		leal 4(%esp),%esi
		movl $__com32,%edi
		mov $5,%ecx
		cld
		rep ; movsl
		jmp __start

		.section ".bss","a"
		.globl __com32
__com32:	.space 20