-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboot.asm
More file actions
75 lines (72 loc) · 880 Bytes
/
boot.asm
File metadata and controls
75 lines (72 loc) · 880 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
org 0x7c00
use16
testing:
mov ah, 0x0E
mov al, 't'
int 10h
mov al, 'e'
int 10h
mov al, 's'
int 10h
mov al, 't'
int 10h
mov al, 'i'
int 10h
mov al, 'n'
int 10h
mov al, 'g'
int 10h
mov al, '.'
int 10h
mov al, '.'
int 10h
mov al, '.'
int 10h
mov al, 10
int 10h
mov al, 13
int 10h
jmp woditel_texta
well:
mov al, 13
int 10h
mov al, 10
int 10h
mov al, 'c'
int 10h
mov al, 'q'
int 10h
mov al, 'O'
int 10h
mov al, 'S'
int 10h
mov al, '>'
int 10h
main:
mov ah,0
int 16h
mov ah,0x0E
int 10h
cmp al, 13
je new
cmp al, 'w'
je well
cmp al, 'W'
je well
new:
mov al, 10
jmp well
woditel_texta:
mov si, text
mov ah, 0x0E
woditel_print:
lodsb
or al, al
jz well
int 10h
jmp woditel_print
msg db 'wellcome to OS',0
text db 'test text', 0
woditeltexta db 'woditel texta v0.0.1',10,13,0
times 510-($-$$) db 0
dw 0xAA55