blob: b73947f0f4149bd648bbaab411a4c3004a5f3ee1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
include sysmbr.s
org codestart
mov si,#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 message
message:
.asciz "MBR loaded but not bootable.\r\n"
include sysmbrtail.s
|