Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Example 1 POINT STRUCT X WORD ? Y WORD ? POINT ENDS POLY STRUCT points POINT 10

ID: 3643507 • Letter: E

Question

Example 1
POINT STRUCT
X WORD ?
Y WORD ?
POINT ENDS

POLY STRUCT
points POINT 10 DUP(<>)
numPoints WORD ?
POLY ENDS
1. Using Example 1, declare a variable named aPoint of type POINT that initializes X to 10 and Y to 20:

2. Create a macro named putChar that writes a single character, passed as a macro argument, to standard output. Be sure to push and pop any registers modified by the macro.


3.What data definitions will be created by the following directives?
FOR colorVal,<red,green,blue,turquoise,purple,orange>
BYTE "&colorVal",0
ENDM
a. six strings, each equal to "&colorVal", followed by a null byte.
b. six null-terminated strings, each containing the name of a different color
c. six variables, each having a label whose name is a color
d. this statement will cause a syntax error

4.Which of the following statements permits assembly if the symbol Win32 has been defined?
a. IF Win32 == 1
b. IF DEFINED Win32
c. IFDEF Win32
d. IFNDEF Win32

5.Which of the following statements permits assembly if arg1 is exactly the same as arg2? (Assume that a case-senstitive comparison is used.)

a. IFEQUAL <arg1>,<arg2>
b. IFIDN <arg1>,<arg2>
c. IF arg1 EQ arg2
d. IFEQ arg1,arg2

Explanation / Answer

1. Create a macro named putChar that writes a single character, passed as a macro argument, to standard

output. Be sure to push and pop any registers modified by the macro.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote