1. The CALL and RET instruction. a How many bytes do CALL and RET instructions each...
in MASAM The RET instruction (without operands) will pop how many bytes off the stack? a. 2 b. 4 c. 8 d.16
How many bytes are removed from the stack when a RET statement is performed in a 32 bit hardware environment? (In Assembly or Machine language)
Please answer the following Assembly x86 Questions with either TRUE or FALSE. 1. The PUSHAD instruction pushes all the 32-bit general-purpose registers on the stack. 2. The SS register points to the last value pushed on the stack. 3. The POP instruction copies a value from the stack to an operand, then it increments the stack pointer 4. When a macro is invoked, both CALL and RET instructions are needed. 5. When the instruction CALL runs, ESP always changes value....
Assuming shorts are 2 bytes long, and pointers are 8 bytes long, how many bytes does this program need? short a = 3; short b = a; short * c = &a; *c = b++; short & d = a; short & e = b; short * f = c; e = *f + d; (a) 0 (b) 4 (c) 8 (d) 12 (e) 16 (f) 20 (g) 24 (h) 28 Please confirm. My answer: (f) 20 short a =...
A video conference call generates 960 Kbps of traffic. How many bytes of a DS-1 frame must be used for the transmission of the above 960 Kbps video conference call? If this video call lasts 6 minutes, then what is the total number of bytes that will be transmitted by this video-conference call? You must briefly explain, how did you derive your answers.
A BALR instruction appears in a program on line 00C. The instruction itself is 2 bytes long. The next line contains an assembly USING directive. There is a variable called FIELD1 defined at line 2DA. (a) What is the displacement that will appear in an instruction which references FIELD1? (b) Assume the BALR instruction reads BALR R10,0. What does this instruction do? (c) What do we call R10? (d) In order to refer to the register as...
What does the instruction jal do? It populates the PC with the address given by the input. It saves the current PC (plus 4 bytes) to the $ra register and the populates the PC with the address given by the input. It populates the PC counter with the word currently stored in the $ra register. It allocates the input number of bytes (provided as an immediate value) onto the stack. 1 points QUESTION 6 What is a function pointer?...
How many bytes will the following instructions increment the EDI register? CLD MOVSW
explain why 5. Which of the following are TRUE for the X86 call instruction? (A) Branches to a specified address: (B) Pushes the instruction pointer value onto the stack; (C) Its target address may be specified in a general-purpose register; (D) Pushes flag registers onto the stack. Answer: Questions 6 - 10. True/False (Total 25 points. 5 points/question) Write T (True) or F (False) on the blank before each statement. 6. The results of code fragment sizeof(int*)=sizeof(int) depends on the...
1-How many bytes are in a halfword? 4 2 6 8 2-Which of the following is NOT true of pseudo-instructions? They tend to be easier to understand than their machine instruction counterparts They map one-to-one to machine instructions They are “shortcuts” to common operations They may map to one or more machine instructions 3- What is the .data section of a MIPS program used for? To define variables to be used in the MIPS program It tells you that this...