File: bsect.S

package info (click to toggle)
yard 1.17.patch1-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 600 kB
  • ctags: 74
  • sloc: perl: 1,729; sh: 250; makefile: 176; asm: 32
file content (43 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (4)
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
42
43
/* bsect.S -- Minimal boot sector for the root disk */
/*   Contributed by Thomas Quinot <thomas@cuivre.fdn.fr> */
BOOTSEG = 0x07c0

	.text

	.globl	_main

	.org	0

_main:	jmp	start

	.org	2

	.ascii	"ROOTDSK"
msg1:	.byte 13, 10
	.ascii  "This is the ROOT disk of a Yard dual-disk rescue set."
        .byte 13, 10
	.ascii  "Insert the BOOT disk and press any key..."
	.byte 13, 10
	.byte 0

start:	mov ax, #BOOTSEG
	mov ds, ax
	mov si, #msg1
	cld
	call print
	xor ah, ah
	int 0x16
	int 0x19

print:	lodsb
	or al, al
	jz print_fin
	mov ah, #14
	xor bh, bh
	int 0x10
	jmp print
print_fin:
	ret

.org 510
	.word 0xaa55