projects
/
newsys
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
initial commit
[newsys]
/
bootbios
/
src
/
boot.asm
1
bits 16
2
section .boot
3
4
start:
5
cli
6
xor ax, ax
7
mov ds, ax
8
mov es, ax
9
mov ss, ax
10
jmp 0:.setcs
11
.setcs:
12
mov sp, ax
13
14
mov si, str_load2
15
call printstr
16
17
sti
18
hang: hlt
19
jmp hang
20
21
str_load2 db 'Loading 2nd stage boot loader...',13,10,0
22
23
printstr:
24
lodsb
25
test al, al
26
jz .done
27
mov ah, 0eh
28
xor bx, bx
29
int 10h
30
jmp printstr
31
.done: ret
32
33
34
times 510-($-$$) db 0
35
dw 0aa55h
36
; vi:ft=nasm ts=8 sts=8 sw=8: