-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathboot.asm
More file actions
executable file
·41 lines (38 loc) · 813 Bytes
/
boot.asm
File metadata and controls
executable file
·41 lines (38 loc) · 813 Bytes
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
35
36
37
38
39
40
41
; SRDISK - boot sector
; Copyright (c) 1996, 2005 Marko Kohtala
; Released under GNU GPL, read the file 'COPYING' for more information
; Do
; tasm /t boot.asm
; tlink /t boot.obj,boot.bin
; and add the resulting bytes to writenew.c, not forgetting the ending 0
code segment
assume cs:code
org 0h
jmp begin
org 3Eh
begin:
xor ax,ax
mov ds,ax
mov si,7C00h+offset msg
cld
lodsb
printnext:
mov bx,7
mov ah,0eh
int 10h
lodsb
or al,al
jnz printnext
endprint:
xor ax,ax
int 16h
mov ax,0e0dh
int 10h
mov al,0ah
int 10h
int 19h
hangup:
jmp hangup
msg: db 13,10,'Non-System disk, remove or replace and press key',0
code ends
end