[su_box title=”Generic Square Box” style=”bubbles” box_color=”#1d318d”]

; 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 ‘*’

.code

lea dx,str1
mov ah,9
int 21h

mov ah,1
int 21h

mov a,al
sub a,48
mov cl,a

mov dl,c
mov ah,2
int 21h

mov dl,d
mov ah,2
int 21h

lableouter:

mov bl,cl
mov cl,a

label:

mov dx,’*’
mov ah,2
int 21h

loop label
mov cl,bl

mov dl,c
mov ah,2
int 21h

mov dl,d
mov ah,2
int 21h

loop lableouter

ret

[/su_box]

OutPut Screen:

Generic Square Box Code

 

" data-link="https://twitter.com/intent/tweet?text=Print+Generic+Square+Box+-Assembly+Code&url=http%3A%2F%2Ftheencarta.com%2Fprint-generic-square-box-assembly-code%2F&via=">">Tweet
0 Shares

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here