CSEG segment org 100h _start mov dx offset Message1 call PRINTWAIT mov

 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
CSEG segment
org 100h
_start:
mov dx, offset Message1
call PRINTWAIT
mov dx, offset Message2
call PRINTWAIT
PRINTWAIT proc
call PRINTER
call KEYPRESSER
ret
PRINTWAIT endp
PRINTER proc
mov ah, 9
int 21h
ret
PRINTER endp
KEYPRESSER proc
mov ah, 10h
int 16h
ret
KEYPRESSER endp
Message1 DB 'Press any key...$'
Message2 DB 0dh, 0ah, 'You pressed key! =)$'
CSEG ends
end _start