Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. model small . data row db 0 ;Create a label and initialize column db 0 ;Create a label and initialize char db ? ;Create

.model small
.data
row db 0 ;Create a label and initialize
column db 0 ;Create a label and initialize
char db ? ;Create a label
.code
main proc
mov ax, @data
mov ds, ax
call read
mov char,al
mov cx,5
for_i:
mov bx,5
for_k:
call cursor
call display
inc row
dec bx
jnz for_k
inc column
sub row,4
call cursor
loop for_i
mov ah,0
int 21h ;0-Program terminate
QUIT: RET
endp
display proc ;write
mov dl,char
mov ah,2
int 21h ;2-Character input with echo
ret
display endp
read proc
mov ah,1
int 21h ;1-Character input with echo
ret
read endp
cursor proc
mov ah,02h
mov bh,00h
mov dl,column
mov dh,row
int 10h
ret
cursor endp
end main

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago