Tuesday, August 20, 2019

Mov Instruction in 8086

Mov is very basic and key instruction in assembly. It moves data from one address to another.it has the widest variety of parameters so that a programmer can use it as...

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

VGA - Scroll Name in Middle (Up & Downward) - Assembly Language Code 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...

VGA- Scroll ABC in Horizontal Row – Assembly Language Code

VGA- Scroll ABC in Horizontal Row - Assembly Language Code org 100h .data pos dw 0 pos2 dw 3998 flag dw 0 var1 db 61h var2 db 61h .code xor ax,ax mov es,ax cli mov es:9*4,myisr mov es:9*4+2,cs sti mov ah,0 mov al,3 int 10h mov ax,0b800h mov es,ax mov ah,08h mov...

Print Vertical Line in Middle of Screen – Assembly Code

; You may customize this and other start-up templates; ; The location of this template is c:emu8086inc_com_template.txt org 100h ; add your code here .data .code main proc mov ax ,0b800h mov ds, ax mov cx,25 mov si,80 column: mov ,1430h add si,160 loop column ret main...

Print Mountain [Steric] – Assembly Language Code

org 100h .data str db 0Ah,0Dh,"$" x dw 1 y dw 7 .code Top1: mov cx,x Top2: mov ah,2 mov dl,'x' int 21h loop Top2 mov ah,9 lea dx,str int 21h inc x cmp x,7 jne top1 Top3: mov cx,y Top4: mov ah,2 mov dl,'x' int 21h loop Top4 mov ah,9 lea dx,str int 21h dec y cmp y,0 jne top3 ret   OutPut Screen:   Find...

Print Sterik Moving Horizontally – Assembly Code

; You may customize this and other start-up templates; ; The location of this template is c:emu8086inc_com_template.txt org 100h ; add your code here .data .code main proc mov ax,0b800h mov ds,ax mov cx,79 mov si,1920 mov ,142Ah mov bx, row: mov ,bx mov ,' ' inc...

Print Hollow Triangle – Assembly Language Code

org 100h ; add your code here .data space db " $" exspc dw 8 inspc dw -1 row db 8 line db 0dh,0ah,"$" .code body: mov cx,exspc ;printing external spaces outer_space: mov ah,2 mov dl,space int 21h loop outer_space mov ah,2 mov dl,'*' int 21h cmp row,8 je else: mov cx,inspc...

Print Generic Triangle – Assembly Language Code

Assembly Language Code to Print Hollow Triangle in Generic. ; You may customize this and other start-up templates; ; The location of this template is c:emu8086inc_com_template.txt org 100h .data A db 0 B db 0 C db 0ah D...

Generic Hollow Square – Assembly Language Code

; You may customize this and other start-up templates; ; The location of this template is c:emu8086inc_com_template.txt org 100h .data A db 0 B db 0 C db 0ah D db 0dh str1 db 'Enter square No $' str2 db...

Generic Hollow Rectangular Box – Assembly Language Code

; You may customize this and other start-up templates; ; The location of this template is c:emu8086inc_com_template.txt org 100h .data A db 0 B db 0 L db ? W db ? C db 0ah D db 0dh str0 db 'Donot...