-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDOS3F.ASM
More file actions
73 lines (55 loc) · 1.48 KB
/
DOS3F.ASM
File metadata and controls
73 lines (55 loc) · 1.48 KB
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
.286
code segment para public
assume cs:code,ds:code,es:code
org 100h
start: jmp install
intXXh proc
cmp ah,3fh
jne runint
push ax
push dx
push ds
mov ah,9
mov dx,offset mes
push cs
pop ds
pushf
call cs:[_int]
pop ds
pop dx
pop ax
runint:
db 0EAh
_int label dword
oldXXo dw 0
oldXXs dw 0
mes db 13,10,"€ƒ€ !!!!!",13,10,"$"
intXXh endp
þþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþ
install proc near
push ES
mov AX,DS:[2Ch]
mov ES,AX
mov AH,49h
int 21h
pop ES
push DS
push ES
mov AX,3521h ;****** edit here ****
int 21h
mov CS:oldXXo,BX
mov CS:oldXXs,ES
cli
mov AX,CS
mov DS,AX
lea DX,intXXh
mov AX,2521h ;***** edit here ******
int 21h
sti
pop ES
pop DS
mov DX,offset install
int 27h
install endp
code ends
end start