summaryrefslogtreecommitdiff
path: root/v4.0/src/CMD/FDISK/REBOOT.ASM
diff options
context:
space:
mode:
authorGravatar Mark Zbikowski2024-04-25 21:24:10 +0100
committerGravatar Microsoft Open Source2024-04-25 22:32:27 +0000
commit2d04cacc5322951f187bb17e017c12920ac8ebe2 (patch)
tree80ee017efa878dfd5344b44249e6a241f2a7f6e2 /v4.0/src/CMD/FDISK/REBOOT.ASM
parentMerge pull request #430 from jpbaltazar/typoptbr (diff)
downloadms-dos-main.tar.gz
ms-dos-main.tar.xz
ms-dos-main.zip
MZ is back!HEADmain
Diffstat (limited to 'v4.0/src/CMD/FDISK/REBOOT.ASM')
-rw-r--r--v4.0/src/CMD/FDISK/REBOOT.ASM43
1 files changed, 43 insertions, 0 deletions
diff --git a/v4.0/src/CMD/FDISK/REBOOT.ASM b/v4.0/src/CMD/FDISK/REBOOT.ASM
new file mode 100644
index 0000000..272e607
--- /dev/null
+++ b/v4.0/src/CMD/FDISK/REBOOT.ASM
@@ -0,0 +1,43 @@
1
2 title Reboot Support for FDISK
3
4IF1
5 %OUT ASSEMBLING: Reboot
6 %OUT
7ENDIF
8
9ROMDATA segment at 040h
10 org 072h
11BootType dw ?
12ROMDATA ends
13
14ROMBIOS segment at 0ffffh
15 org 0
16POR label far
17ROMBIOS ends
18
19_text segment byte public 'code'
20 assume cs:_TEXT
21 assume ds:nothing
22 assume es:nothing
23 assume ss:nothing
24
25 public _reboot
26_reboot proc near
27
28 mov ax,ROMDATA
29 mov ds,ax
30 assume ds:ROMDATA
31
32 mov BootType,1234h
33
34 cli
35 cld
36 jmp POR
37
38_reboot endp
39
40_text ends
41
42 end
43 \ No newline at end of file