Answered step by step
Verified Expert Solution
Question
1 Approved Answer
To clear the screen and set the cursor to the center of the screen use the following instructions (see also Interrupts.pdf): ;clearing the screen MOV
To clear the screen and set the cursor to the center of the screen use the following instructions (see also Interrupts.pdf): ;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 INT 10H invoke interrupt 10H page 0 You need to put these instructions into loop in order to set the cursor to the center of the screen for each print 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: I and O will be displayed. at the third iteration of the loop: J, O, and H will be displayed. at the fourth iteration of the loop: J, O, H and N will be displayed
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