summaryrefslogtreecommitdiff
path: root/v4.0/src/CMD/FDISK/REBOOT.ASM
blob: 272e607671b2ad6e1fbebe3c5cf0f8cf31e515ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
	title	Reboot Support for FDISK

IF1
	%OUT ASSEMBLING: Reboot
	%OUT
ENDIF

ROMDATA segment at 040h
	org	072h
BootType	dw	?
ROMDATA ends

ROMBIOS segment at 0ffffh
	org	0
POR	label	far
ROMBIOS ends

_text	segment byte public 'code'
	assume	cs:_TEXT
	assume	ds:nothing
	assume	es:nothing
	assume	ss:nothing

	public	_reboot
_reboot proc	near

	mov	ax,ROMDATA
	mov	ds,ax
	assume	ds:ROMDATA

	mov	BootType,1234h

	cli
	cld
	jmp	POR

_reboot endp

_text	ends

	end