0% found this document useful (0 votes)
89 views29 pages

ôn tập c67

The document contains questions about assembly language programming and instructions. It asks the reader to identify instruction encodings, addressing modes, register values after instruction sequences, and to perform operations like conversions between number representations.

Uploaded by

21110294
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views29 pages

ôn tập c67

The document contains questions about assembly language programming and instructions. It asks the reader to identify instruction encodings, addressing modes, register values after instruction sequences, and to perform operations like conversions between number representations.

Uploaded by

21110294
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Given 8bit floatingpoint binary format:

1 (sign) + 3 (exponent) + 4 (mantissa)


Convert the 8bit floating point number 57 (in hex) to decimal.
A system programmer needs to divide -6247 by 300 (decimal). Instruct him to code in debug (number
must be in hex and the result should be?

Write mask byte (in hex) to clear the lower 4 bit of a byte value with AND instruction

To isolate one or more bits in a byte value, use __________ instruction.


EAX now stored a 32bit IP address of a host. The network ID (netID) is 20 bit and can be
extracted from IP byte anding with a 32bit mask. Write correct instruction to extract netID from
EAX register

The following sequence of instructions are executed. What is the correct values at watch point?

The following sequence of instructions are executed. What is the correct value of flag bits at watch
point?
Physical address of the stack pointer is 2DA82, stack segment located at 1DAE. Computer the
value of SP register?

Match the following hexadecimal numbers to octal

Enter debug command to fill 256 bytes in data segment starting from 100 with value 0D
Given 8bit floatingpoint binary format:
1 (sign) + 3 (exponent) + 4 (mantissa)
Convert the 8bit floating point number E7 (in hex) to decimal.

Match the correct answer for binary operations on the left

Convert the following binary numbers to hexadecimal


The following sequence of instructions are executed. What is the correct value of CF and OF at
watch point?

To test one bit in a byte value without destructing the byte, use __________ instruction
Given a row of memory image in debug
0AE8:0120 13 96 D0 E0 D0 E0 A2 1E 99 80 3E 20 99 00 75 24
Initially, AX=BX=CX=DX=0, SI=121
What are value of CX,DX after execution of the following instructions?
MOV DX, [SI]
MOV CX, [SI+2]

Select correct match for register values at watch points:


MOV AX, 152D
ADD AX, 003F
watch point #1:
ADD AH, 10
watch point #2:
......
A memory location located in extra segment which now has value of 564F. This memory managed
by ES:SI registerpair. SI now points to 905F. Compute the physical address of this memory
location

Select correct match for AL and carry flag at watch point #1:
MOV BL, 8C
MOV AL, 7E
ADD AL, BL
Convert the 32bit floating point number C4361000 (in hex) to decimal

Which of the following instructions are not legal addressing?

Compute the physical address of stack top if stack pointer is FFAE and stack segment located at
1DAE
Signextend number 1011 0101 (8bit binary) to 16bit

The following sequence of instructions are executed. What is the correct value of AX, CX, DX at
watch point?
MOV AX,30
MOV CX,FFFF
MUL CX

In multiplication instruction, the upper half of the result is nonzero implies which state of Carry flag and
Overflow flag?
Consider the following assembly instruction sequence
XOR BX, BX
CMP DL, 5
JLE a_label
CMP DL,17h
JGE a_label
MOV BX, 10h
a_label:
INC BX
watch point:
...
Choose correct value of BX register at watch point for different value of DL?

Which are the correct actions for LODSW string operation if DF is reset (=0)
Which of the following instructions are not valid?

The following sequence of instructions are executed. What is the correct value of AX, CX, DX at watch
point?
MOV AX,0020
MOV CX,0010
MUL CL

Which are the correct inputs for XLAT instruction


What is the correct value of SI, AL (in hex) at watch point:
01: MOV SI, 300h
02: MOV AL, 10h
03: MOV CX, 7
04: Loop_label:
05: MOV [SI], AL
06: ADD AL,10h
07: INC SI
08: LOOP Loop_label

To encrypt a byte value, use __________ instruction.


In multiplication instruction, when the source operand is 8 bit, _________ will be multiplied with source.

A system programmer needs to compute 449/2+358/4 (decimal). Instruct him to code in debug (number
must be in hex) with the least number of instruction counts.

Convert 0.1015625 to IEEE 32-bit floating point format (1 sign+ 8 exponent + 23 mantissa)
The instruction that loads the AH register with the lower byte of the flag register is

Which are correct about 32 bit index registers of IA-32 processors:

Select the correct sequence of instructions to compute -1024/128 (all values are in hex).
Convert the 32-bit floating point number C4361000 (in hex) to decimal.

Write mask byte (in hex) to clear bit 2nd, 3rd, 5th of a byte value with AND instruction (LSB is
1st bit)

Write mask byte (in hex) to set bit 6th, 4th of a byte value with OR instruction (LSB is the 1st
bit).

the instruction, CMP to compare source and destination operands by

Part of computer memory is shown in figure


the memory stack area of a program shown in figure

Given 8-bit floating-point binary format:


1 (sign) + 3 (exponent) + 4 (mantissa)
Convert the 8-bit floating point number 68 (in hex) to decimal.

The value in CS is 1FD0h what is the location of next instruction from 00000h if Instruction pointer is 3CD4h

Identified correct addressing mode of the following instructions?


the memory stack area of a program shown in figure

The value of SP register is 1D50. What is the value of SP follows the execution of PUSH SI

Choose correct value of AL register at watch point for different value of DL?
The following sequence of instructions are executed. What is the correct value of CF and
OF at watch point?

Which could be correct ones for the destination operand in a data movement instruction?
Write mask byte (in hex) to clear bit 2nd, 3rd, 5th of a byte value with AND instruction (LSB is 1st
bit)

if the location to which the control is to be transferred lies in a segment other than the
current one, then the jump instruction is call

Convert the 32-bit floating point number 44363800 (in hex) to decimal.
The
following sequence of instructions are executed. What is the correct value of flag bits at
watch point?
MOV AX,FFFF
MOV CX,5
MUL CX

In multiplication instruction, when the source operand is 16 bit, how can the result be taken?

Given a row of memory image in debug


Which are correct action for SCASW string operation if DF is set (=1)

The instruction that supports addition when carry exists is


To test one bit in a byte value without destructing the byte, use __________ instruction.

Given a flowchar of an algorithm


Which are correct action for STOSB string operation if DF is reset (=0)
The instruction that is used for finding out the codes in case of code conversion problems is

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy