0% found this document useful (0 votes)
75 views

Character Blink Using Delay Function

The document describes code to blink a character on the screen using a delay function. The code clears the screen, gets a character from the user, and then blinks that character on and off by clearing and redrawing it using delays tied to the system timer interrupt.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Character Blink Using Delay Function

The document describes code to blink a character on the screen using a delay function. The code clears the screen, gets a character from the user, and then blinks that character on and off by clearing and redrawing it using delays tied to the system timer interrupt.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Character Blink Using Delay Function

============================================
.MODEL SMALL
DATA_SEG SEGMENT 'DATA'
ST2 DB "ENTER CHARACTER YOU WANT TO BLINK.....$"
ST1 DB (?)
DATA_SEG ENDS

CODE_SEG SEGMENT 'CODE'


ASSUME CS:CODE_SEG,DS:DATA_SEG,SS:STACK_SEG
MAIN PROC FAR
MOV AH,6
MOV AL,0
MOV BH,07
MOV CH,0
MOV CL,0
MOV DH,25
MOV DL,80
INT 10H

MOV AX,DATA_SEG
MOV DS,AX
MOV AH,9
MOV DX,OFFSET ST2
INT 21H

MOV AH,1
INT 21H
MOV ST1,AL

AGAIN:
MOV AH,6
MOV AL,0
MOV BH,07
MOV CH,0
MOV CL,0
MOV DH,25
MOV DL,80
INT 10H

MOV AH,2
MOV BH,0
MOV DH,12D
MOV DL,40D
INT 10H

MOV AX,40H
MOV ES,AX
MOV AX,ES:[6CH]
ADD AX,40
AGAIN2 : CMP AX,ES:[6CH]
JNE AGAIN2

MOV AH,2
MOV DL,ST1
INT 21H

MOV AX,40H
MOV ES,AX
MOV AX,ES:[6CH]
ADD AX,36
AGAIN3: CMP AX,ES:[6CH]
JNE AGAIN3

MOV AH,0BH
INT 21H
CMP AL,0FFH
JNE AGAIN

MOV AH,4CH
INT 21H

MAIN ENDP
CODE_SEG ENDS

STACK_SEG SEGMENT STACK


abc dw 100 dup(?)
STACK_SEG ENDS
END MAIN

http://www.ravianeducation.blogspot.com
FARHAN: 03008855006

You might also like