Question
This is Assembly Language Programming. Thank you. 1.What instruction provides an easy way to translate from uppercase to lowercase? 2 (1 point) Question 2 Unsaved
This is Assembly Language Programming. Thank you.
1.What instruction provides an easy way to translate from uppercase to lowercase?
2 (1 point) Question 2 Unsaved In the following instruction sequence, show the resulting value of AL where indicated, in hexadecimal: mov al, 7Ah not al mov al, 3Dh and al, 74h mov al, 9Bh or al, 35h mov al, 72h xor al, 0DCh
3.What conditional jump instruction executes a branch based on the contents of ECX?
4.In the following instruction sequence, show the values of the Carry, Zero, and Sign flags where indicated: mov al, 00001111b test al, 00000010b mov al, 00000110b cmp al, 00000101b (Hint: type in your answer as CF = ___ ZF = ___ SF = ___)
5.What will be the contents of AX after the following operation? mov ax, 63h mov bl, 10h div bl
6.What will be the contents of BX after the following instructions execute? mov bx, 5 stc mov ax, 60h adc bx, ax
7.The binary value of AL after the following instructions have executed is 11100010. mov al,11000101b sar al,1
Question 7 options: True False
8.The MUL instruction sets the Carry flag if the upper half of the product is not equal to zero.
Question 8 options: True False
9.Write a logical shift instruction that divides EBX by 4.
10.Declare a local variable named pArray that is a pointer to an array of doublewords.
11.Declare a local variable named buffer that is an array of 20 bytes.
12.Local variables are stored on the runtime stack, at a higher address than the stack pointer. Question 12 options: True False
13. In 32-bit programs, ADDR and OFFSET return the same value. Question 13 options: True False
14. Write instructions that divide -276 by 10 and store the result in a 16-bit variable val1.
15. What special ability does the Lea instruction have that MOV-OFFSET does not?
16. In reference to string primitives, which 32-bit register is known as the accumulator?
17. What does the REPZ prefix do for a CMPSB instruction?
18. What happens in the STR_ucase procedure if the target string contains a digit?
19. Show an example of a base-index-displacement operand.
20. What is the purpose of the STRUCT directive?
21. Write a macro named OutChar that displays a single character on the screen. It should have a single parameter, the character to be displayed.
22. What is the primary advantage to using a macro versus using the TEXTEQU directive?
23. What is the purpose of the IFB directive?
24. The Str_compare procedure stops when the null terminator of the longer string is reached. Question 24 options: True False
25. When a macro is invoked, thecal and RET instructions are automatically inserted into the assembled program. Question 25 options: True False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started