forked from Osama-Moh/Micro1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.asm
64 lines (46 loc) · 875 Bytes
/
start.asm
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
.model small
.stack 64
.data
message1 db 'To Start Chatting Press F1','$'
message2 db 'To Start the game Press F2','$'
message3 db 'To End The Program Press ESC','$'
.code
main proc far
mov ax,@data
mov ds,ax
mov ax,0600h
mov bh,07H
mov cx,0
mov dx,184FH
int 10h
mov ah,2H
mov bh,0h
mov dx,0h
int 10h
mov ah,2h
mov dl,10H
mov dh,5H
int 10h
mov ah,9h
mov dx,offset message1
int 21h
mov ah,2h
mov dl,10H
mov dh,7H
int 10h
mov ah,9h
mov dx,offset message2
int 21h
mov ah,2h
mov dl,30H
mov dh,9H
int 10h
mov ah,9h
mov dx,offset message3
int 21h
mov ah,0h
int 16h
HLT
main ENDP
end main
;;this part can be written as macro since it will be used many times