blob: db80946ad4b5670d3c06b15394d3afba5293e2f5 (
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
|
;Start 16 BITS bootloader program
[BITS 16]
;Save the first adress with a label to complete the MBR at the end.
start:
;Init CPU registers
mov ax, 0x0C70 ;Put bootloader adress in ax register
mov ds, ax ;Init data segment
mov ax, 0x8000
mov ss, ax
mov ax, 0xf000
mov sp, ax
call clearScreenIntBios
;Pause here !
infiniteLoop:
jmp infiniteLoop
%include "clearScreenIntBios.asm"
;Complete the MBR with nothing
times 510 - ($ - start) db 0x0
;Declare magic number
dw 0xAA55
|