Bartleby Related Questions Icon

Related questions

Question

Fill in the blanks "__"

This is assembly language, using TASM.

;The program will ask the user to enter the height and the width including the character ;The program will display the character presses forming a square or rectangle shape.
;The program will also asked the user to tryagain or exit from the program
;Character Y or y is 59h and 79h while N or n is 4eh and 6eh

_____
_____ param1
mov dx,_______ _____
mov _______,9
________

endm
_______
________
_______
_______

msgHeight db 10,13, "Enter height of the rectangle: $"
msgWidth db 10,13, "Enter width of the rectangle: $"
msgCharacter db 10,13, "Enter character to print: $"
msgTryAgain db ,10,13, "Try Again y/n: $"
msgnl db 10,13, '$'
character db '?'

.code
main ____
_____
mov ax, _______
mov _______, ax
______ :

mov ax, 3
_______
_______ msgHeight
_______
_______, 01h
int 21h
sub al, 30h
mov cl, ________ ;

cout msgWidth

mov ah, 01h
int 21h
sub al, 30h
mov ch,al

cout msgCharacter
______ ah, _______
______
mov character, al
mov ______, _______
int 10h

mov bl,cl
_______ :
mov ________ ,ch
mov ________ character
mov ah, 02h
________ :
int _______
______ bh
______ InnerLoop

cout msgnl
dec ______
_____ OuterLoop

cout msgnl
______ :

cout msgTryAgain
______ ah, ______ h
______ h
______ al, 59h
______ ulit
cmp al, 79h
je ______

______
_____, 6Eh
je _______
______ al, ______

je exitprogram
_____ tryagain
______ :
mov ah, _______
int 21h ________

END main

Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Similar questions