Home /
Expert Answers /
Computer Science /
nbsp-1-write-an-assembly-language-program-that-clears-the-screen-locates-the-cursor-near-the-pa847
(Solved):
1. Write an assembly language program that clears the screen, locates the cursor near the ...
1. Write an assembly language program that clears the screen, locates the cursor near the middle of the screen, asks for your name, age, prompts for two integers, adds the integers, and displays their sum. Let the program repeat the steps three times using a loop. Clear the screen after each iteration. 2. Write a 32-bit mode assembly language program that uses a LOOP to sum the elements of the following words array: arrayD WORD 100h, 200h, 300h, 400h For each of the above problems: Use procedures wherever possible Submit the program pseudocodes and flowchart on a word document and the asm file separately Screen dumps for the results Tobe uploaded on blackboard
(1.) INCLUDE Irvine32.inc .data prompt BYTE "Enter a 32-bit signed integer:",0 resultMsg BYTE "Sum of 2 integers is:",0 int1 DWORD ? int2 DWORD ? sum DWORD ? .code main PROC call Clrscr ;Move cursor to mid screen MOV D