Question: a) Consider the following code. What are the values returned by SIZEOF operator of the following data definitions? .data byte1 BYTE 10,20,30 array1 WORD
a) Consider the following code. What are the values returned by SIZEOF operator of the following data definitions? .data byte1 BYTE 10,20,30 array1 WORD 30 DUP (?),0,0 array2 WORD 5 DUP (3 DUP (?)) array3 DWORD 1,2,3,4 .code mov cx, SIZEOF arrayl SIZEOF ; a. ; b. Note: Supplement code with appropriate comments. ; c. ; d. b) Write a program in Assembly Language to perform the following tasks: Obtain a string of numbers from user terminated by ENTER key or the length of string reaches 20. Get the number from the user and then search it in the list. (Note: This will give you ASCII code of number) Search the number from the string and display the position of the number if it is less than 10 otherwise display "The number is in the list" or "Number not found", depending on the search scenario.
Step by Step Solution
3.28 Rating (166 Votes )
There are 3 Steps involved in it
a The values returned by the SIZEOF operator for the given data definitions are as follows SIZEOF bytel 1 since it is a single byte SIZEOF array1 62 3... View full answer
Get step-by-step solutions from verified subject matter experts
