diff options
Diffstat (limited to 'v4.0/src/CMD/FDISK/REBOOT.ASM')
| -rw-r--r-- | v4.0/src/CMD/FDISK/REBOOT.ASM | 43 |
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 | |||
| 4 | IF1 | ||
| 5 | %OUT ASSEMBLING: Reboot | ||
| 6 | %OUT | ||
| 7 | ENDIF | ||
| 8 | |||
| 9 | ROMDATA segment at 040h | ||
| 10 | org 072h | ||
| 11 | BootType dw ? | ||
| 12 | ROMDATA ends | ||
| 13 | |||
| 14 | ROMBIOS segment at 0ffffh | ||
| 15 | org 0 | ||
| 16 | POR label far | ||
| 17 | ROMBIOS 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 | ||