you will use a link library procedure call to effect stdout display. Write a program that displays the same string in four different colors, using a loop. Call the SetTextColor procedure from the text link library. Any colors may be chosen, but you may find it easiest to change the foreground color. Store values into the EAX and EBX registers. Compile and run your program to validate that your program sequence of statements exchanges the original register values. Define a string to be displayed in the data segment that includes YOUR name. Example: str1 byte "This line is displayed in color selected by Ann Napa",0

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

 

The class I'm taking is assembly programming

**** i am looking for someone to correct my work and show me where i went wrong. i am not looking for you to rewrite my program***I am completely stuck. I keep getting the same error! " A1000: cannot open file : Irvine32.inc " Can you please take a look at my work and tell me what I should change so I can successfully run and compile in visual studio. a fellow colleague recommended to " place the OFFSET str instruction inside of the loop body." i dont know what he ment by this. if you can please show me.   I have attached the program instructions. I have also attached a screenshot of my work and the error i am getting once i comile program.  Please view both attachments before answering.  Thank you so much for your help!  Any help is greatly appreciated.

File
Edit
View
Git
Project
Build
Debug
Test
Analyze
Tools
Extensions
Window
Help
Search (Ctrl+Q)
assingment 6
SP
Debug
х86
• Local Windows Debugger - & Auto
Solution Explorer 4
Irvine32.inc
Seanlab6.asm + x
1
INCLUDE C:/Irvine32.inc
2
.data
3
stri BYTE "This line is displayed in color selected by Thomas Greene",0
4.
.code
6
main PROC
7
MOV ECX, 4
8
MOV EAX, green + (white*16)
9
MOV EDX, OFFSET text
10
L1:
call SetTextColor ; set the color
call WriteString ; display the text
11
12
13
call Crlf
14
INC EAX ; next color
LOOP L1 ; repeat until ecx is not 0
call WaitMsg
15
16
17
exit
18
main ENDP
19
END main
100 %
No issues found
Ln: 19
Ch:
Output
Show output from: Build
世
Build started...
1>------ Build started: Project: assingment 6, Configuration: Debug Win32 ---
1>Assembling Seanlab6.asm...
1>Seanlab6.asm(1): fatal error A1000: cannot open file : C:/Irvine32.inc
1>C:\Program Files (x86) \Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\masm.targets(70,5): error MSB3721: The command "ml.exe /c /nologo /Zi /Fo"Debug\Seanlab6.obj" /W3 /errorRep
1>Done building project "assingment 6.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Transcribed Image Text:File Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help Search (Ctrl+Q) assingment 6 SP Debug х86 • Local Windows Debugger - & Auto Solution Explorer 4 Irvine32.inc Seanlab6.asm + x 1 INCLUDE C:/Irvine32.inc 2 .data 3 stri BYTE "This line is displayed in color selected by Thomas Greene",0 4. .code 6 main PROC 7 MOV ECX, 4 8 MOV EAX, green + (white*16) 9 MOV EDX, OFFSET text 10 L1: call SetTextColor ; set the color call WriteString ; display the text 11 12 13 call Crlf 14 INC EAX ; next color LOOP L1 ; repeat until ecx is not 0 call WaitMsg 15 16 17 exit 18 main ENDP 19 END main 100 % No issues found Ln: 19 Ch: Output Show output from: Build 世 Build started... 1>------ Build started: Project: assingment 6, Configuration: Debug Win32 --- 1>Assembling Seanlab6.asm... 1>Seanlab6.asm(1): fatal error A1000: cannot open file : C:/Irvine32.inc 1>C:\Program Files (x86) \Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\masm.targets(70,5): error MSB3721: The command "ml.exe /c /nologo /Zi /Fo"Debug\Seanlab6.obj" /W3 /errorRep 1>Done building project "assingment 6.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
you will use a link library procedure call to effect stdout display.
Write a program that displays the same string in four different colors, using a loop. Call the
SetTextColor procedure from the text link library. Any colors may be chosen, but you may find it
easiest to change the foreground color.
Store values into the EAX and EBX registers. Compile and run your program to validate that your
program sequence of statements exchanges the original register values.
Define a string to be displayed in the data segment that includes YOUR name.
Example:
str1 byte "This line is displayed in color selected by Ann Napa",0
Transcribed Image Text:you will use a link library procedure call to effect stdout display. Write a program that displays the same string in four different colors, using a loop. Call the SetTextColor procedure from the text link library. Any colors may be chosen, but you may find it easiest to change the foreground color. Store values into the EAX and EBX registers. Compile and run your program to validate that your program sequence of statements exchanges the original register values. Define a string to be displayed in the data segment that includes YOUR name. Example: str1 byte "This line is displayed in color selected by Ann Napa",0
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY