Monday, December 17, 2018

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...

Print Generic Diamond – Assembly Language Code

org 100h .data A db 0 B db 0 C db 0ah D db 0dh countstr db 0 str db 1 space db 0 str1 db 'Enter odd Diamond $' str2 db '*' spaces db ' ' .code ;Enter odd Diamond No lea dx,str1 mov ah,9 int...

Print Generic Square Box -Assembly 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...

Print Diamond in Assembly Language [Using Sterics]

; You may customize this and other start-up templates; ; The location of this template is c:emu8086inc_com_template.txt org 100h .data n dw 5 ;number of lines of stars s dw 13 str dw 1 res dw 0 .code mov ax,n mov...