it MOVE separately by the line....can it possible 7 line of the combination to "T" and "H" move in a same time??
my code of delay is not work also ......any pro in Masm can give me a help .......T.T
my code of delay is not work also ......any pro in Masm can give me a help .......T.T
Rich (BB code):
.model small
.stack 64
.data
T1 BYTE " +========+ || || ", 13, 10,"$"
T2 BYTE " +========+ || || ", 13, 10,"$"
T3 BYTE " || || || ", 13, 10,"$"
T4 BYTE " || ||||||||| ", 13, 10,"$"
T5 BYTE " || || || ", 13, 10,"$"
T6 BYTE " || || || ", 13, 10,"$"
T7 BYTE " || || || ", 13, 10,"$"
T8 BYTE " +=+= +=+= +=+= +=+= +=+= +=+= +=+= +=+=", 13, 10,"$"
.code
delay:
push cx
push dx
mov cx,170
mov dx,1000
mov ah, 86h
int 15h
pop dx
pop cx
ret
Main proc
mov ax,@data
mov ds,ax
; MOV CX,10
display:
mov bx,2; or whatever
top:
mov ah, 09H
lea dx, [T1 + bx]
int 21h
mov ah, 09H
lea dx, [T2 + bx]
int 21h
mov ah, 09H
lea dx, [T3 + bx]
int 21h
mov ah, 09H
lea dx, [T4 + bx]
int 21h
mov ah, 09H
lea dx, [T5 + bx]
int 21h
mov ah, 09H
lea dx, [T6 + bx]
int 21h
mov ah, 09H
lea dx, [T7 + bx]
int 21h
mov ah, 09H
lea dx, [T8 + bx]
int 21h
call delay
call resetCursor
dec bx
jnz top
JMP display
mov ax,4c00h
int 21h
main endp
clearScreen proc
MOV AX, 0600H ;AH = 06 (scroll)
;AL = 00 (full screen)
;MOV BH, 0fH ;White background (0)
;Blue foreground (1)
MOV CX, 0000H ;Upper left row:column
MOV DX, 184FH ;Lower right row:column
INT 10H ;Call interrupt service
retn
clearScreen endp
resetCursor proc
MOV AH, 02H ;Request set cursor
MOV BH, 00 ;Page number 0
MOV DX, 0000H ;Row 0, column 0
INT 10H ;Call interrupt service
retn
resetCursor endp
end main