-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboot.asm
More file actions
81 lines (53 loc) · 699 Bytes
/
Copy pathboot.asm
File metadata and controls
81 lines (53 loc) · 699 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
76
77
78
79
80
81
org 0x7c00
bits 16
mov ah,0x0C
mov cx,160
mov dx,100
mov al,4
int 0x10
mov ax,0x0003
int 0x10
mov ah,0x0E
mov al,'C'
int 0x10
mov ah,0x0E
mov al,':'
int 0x10
mov ah,0x0E
mov al,'\'
int 0x10
mov ah,0x0E
mov al,'>'
int 0x10
start:
mov ah,0x00
int 0x16
mov ah,0x0E
int 0x10
cmp al,'r'
je r
cmp al,''
mov ah,0x0E
mov al,'C'
int 0x10
mov ah,0x0E
mov al,':'
int 0x10
mov ah,0x0E
mov al,'\'
int 0x10
mov ah,0x0E
mov al,'>'
int 0x10
r:
mov ah,0x00
int 0x16
cmp al,0x0D
je reboot
reboot:
mov al,0xFE
out 0x64,al
jmp $
jmp start
times 510 - ($-$$) db 0
dw 0xAA55