VGA – Scroll Name in Middle (Up & Downward) – Assembly Language Code

0

VGA – Scroll Name in Middle (Up & Downward) – Assembly Language Code

[su_box title=”SCROLL Name” style=”bubbles” box_color=”#1d318d”]

org 100h

.data

str1 db “Khunshan$”
str2 db “Butt$”

l1 db ($-str1)
l2 db ($-str2)

cor1 dw 1986
cor2 dw 2000

.code
mov ax,0b800h
mov es,ax

top:

cld
lea si,str1
mov bh,06
mov dx,cor1
mov di,dx

mov cx,8
first:
lodsb
mov bl,al
mov es:di,bx
add di,2
loop first

cld
lea si,str2
mov bh,04
mov dx,cor2
mov di,dx

mov cx,4
second:
lodsb
mov bl,al
mov es:di,bx
add di,2
loop second

mov cx,8
mov di,cor1
clear1:
mov es:di,20h
add di,2
loop clear1

mov di,cor2
mov cx,4
clear2:
mov es:di,20h
add di,2
loop clear2

add cor1,154
sub cor2,154

cmp cor1,3680
je end

loop top

end:
cld
lea si,str1
mov bh,06
mov dx,cor1
mov di,dx

mov cx,5
print1:
lodsb
mov bl,al
mov es:di,bx
add di,2
loop print1

cld
lea si,str2
mov bh,04
mov dx,cor2
mov di,dx

mov cx,5
print2:
lodsb
mov bl,al
mov es:di,bx
add di,2
loop print2

ret

[/su_box]

OutPut Screen:

Scroll Name Code

Find More Assembly Codes Here!

Leave A Reply