15 lines
223 B
NASM
15 lines
223 B
NASM
![]() |
[BITS 16]
|
||
|
|
||
|
;Save the first adress in with start label
|
||
|
start:
|
||
|
|
||
|
;Init CPU registers
|
||
|
mov ax, 0x0C70
|
||
|
mov ds, ax ;Init data segment
|
||
|
|
||
|
;Complete the MBR with nothing
|
||
|
times 510 - ($ - start) db 0x0
|
||
|
|
||
|
;Declare magic number
|
||
|
dw 0xAA55
|