Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (58 sloc) 804 Bytes
.model small
.stack
EXTRN inum:BYTE
EXTRN num:BYTE
EXTRN inum2:BYTE
extrn res:byte
public display3
Public display1
Public display2
.data
.code
DISPLAY1 proc FAR
mov cx, 10
mov si, 0
mov ah, 02H
mov dl, 0AH
int 21H
disp1: mov ah, 02H
mov dl, byte ptr[inum+si]
int 21H
inc si
dec cx
jnz disp1
ret
display1 endp
DISPLAY2 proc FAR
mov cx, 10
mov si, 0
mov ah, 02H
mov dl, 0AH
int 21H
disp2: mov ah, 02H
mov dl, byte ptr[inum2+si]
int 21H
inc si
dec cx
jnz disp2
ret
display2 endp
DISPLAY3 proc FAR
mov cx, 10
mov si, 0
mov ah, 02H
mov dl, 0AH
int 21H
disp3: mov ah, 02H
mov dl, byte ptr[res+si]
sub dl, 30H
int 21H
inc si
dec cx
jnz disp3
mov dl, byte ptr[res+10]
mov ah, 02H
int 21H
ret
display3 endp
end