Symbolic_Integer_and_Text Constants (Chapter 3, Pr 2 and 4) 2 This is a practice
ID: 3887173 • Letter: S
Question
Symbolic_Integer_and_Text Constants (Chapter 3, Pr 2 and 4) 2 This is a practice with symbolic constant definitions either using integers or strings. The requirement is as follows 1. Write a program that defines symbolic constants for all seven days of the week o Define each integer value for symbol Monday,, Sunday to simulate C++ enumeration type o In the data segment, create an array to uses these symbols as initializers o Use $ operator to calculate the number of elements in the array o In the code segment, watch the array count with a register 2. Write a program that defines symbolic names for several string literals Define three strings for symbol named like Message 1, Message2, etc o In the data segment, use each symbolic name to initialize the string variables Try to use 0D and 0A, as well as a zero terminator in your definitions In the code segment, set a break point and when running in debug, you can watch your string memoryExplanation / Answer
part1.asm
============================================================================
part2.asm
==============================================================================
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.