blob: 22e1312e379aed3c8c691436e32a6d8068b3bad9 (
plain)
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
|
org $7c00
include sysboot.s
org dos_sysid
.ascii "PANIC" ! System ID
org codestart
xor ax,ax
mov ds,ax
mov ss,ax
mov sp,ax
jmpi code,#0
code: ! SI = pointer to error message
mov si,#boot_message
nextc:
lodsb
cmp al,#0
jz eos
mov bx,#7
mov ah,#$E ! Can't use $13 cause that's AT+ only!
int $10
jmp nextc
eos: ! Wait for a key then reboot
xor ax,ax
int $16
jmpi $0,$FFFF ! Wam! Try or die!
export boot_message
boot_message:
.asciz "PANIC! NO OS Found!\r\n"
|