Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Aim: To get familiar with Assembly Language programming. Task: Write an Assembly Language program which will print your name at the centre of the monitor
Aim: To get familiar with Assembly Language programming. Task: Write an Assembly Language program which will print your name at the centre of the monitor Description: Assume that your name is JOHN, and needs to be displayed at the centre of the monitor as follows: at the first iteration of the loop: "J" will be displayed., at the second iteration of the loop: "T" and "0" will be displayed. at the third iteration of the loop: "J". "0", and "H" will be displayed. at the fourth iteration of the loop: "J"', "O", "H" and "N" will be displayed. letter counti count2 .MODEL SMALL .STACK 64 .DATA db 41h db 26 dw offffh .CODE mov ax, @DATA mov ds, ax ;ASCII of character "A" ; number of characters ;delay MAIN: next: ;clearing the screen MOV AX,0600H ; scroll the entire page MOV BH,07 ; normal attribute MOV CX,0000 ;row and column of the top left MOV DX, 184FH ;row and column of the bottom right INT 10H ; invoke interrupt 10H setting the cursor to the center of the screen MOV AH,02 ; set cursor option MOV BH,00 MOV DL,39 ; center column position MOV DH,12 ; center row position ; invoke interrupt 10H Page 0 mov ah, 02h nov d1,letter sprint letter de doua 2 une next ; decrement delay ex ea baccount decremene ume: nemacte coure #fffd Post
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started