Question: 1. What will be the last integer to be generated by the following loop? rows = 10 columns = 5 .data iVal = 10
1. What will be the last integer to be generated by the following loop? rows = 10 columns = 5 .data iVal = 10 REPEAT rows columns DWORD IVal iVal = iVal + 10 ENDM 2. Write a procedure named DifferentInputs that returns EAX = 1 if the value of its three parameters are all different; otherwise, return with EAX = 0. Use the PROC directive with a parameter list when declaring the procedure. Create a PROTO declaration for your procedure. Call it five times from a test program that passes different inputs. 3. Write a procedure named StrConcat that concatenates a source string to the end of a target string. Sufficient space must exist in the target string to accommodate the new characters. Pass pointers to the source and target strings. Here is a sample call: data targetString BYTE "ABCDE", 10 DUP(0) sourceString BYTE "FGH",0 .code INVOKE StrConcat, ADDR targetString, ADDR sourceString
Step by Step Solution
There are 3 Steps involved in it
The provided code snippet appears to be a mix of pseudo code and assemblylike syntax but it is not a valid assembly code Assuming that it is intended to be assembly code Ill correct it rows 10 columns ... View full answer
Get step-by-step solutions from verified subject matter experts
