Toan 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Given 8bit floatingpoint binary format: 1 (sign) + 3 Compute the physical address of stack top if stack the instruction,

the instruction, CMP to compare source and destination Consider a magnetic disk drive with 8 surfaces, 512 In multiplication instruction, when the source operand is To clear one or more bits in a byte value, use _AND_ in
(exponent) + 4 (mantissa).Convert the 8bit floating pointer is FFAE and stack segment located at 1DAE operands by:subtracting tracks per surface, and 64 sectors per track. Sector size 16 bit, how can the result be taken? The following sequence of instructions are exeuted.
point number 57 (in hex) to decima 2DA8E To balance the super speed of CPU with the slow is 1 kB. What is the disk capacity DA: from DX:AX pair What is the correct value of flag bits at
DA : 5,75 Signextend number 1011 0101 (8bit binary) to 16bit response of memory, which DA: 512 KB Given a row of memory image in debug watch point?
A system programmer needs to divide 6247 by 300 1111111110110101 of the following measures have been made by engineers 0AE8:0120 13 96 D0 E0 D0 E0 A2 1E - 99 80 3E 20 99 MOV AL,-5
(decimal) The following sequence of instructions are executed. in system design? What best describe the Spatial and Temporal Locality? 00 75 24 SUB AL,124
DA : MOV AX,E799; CDW; CDW; IDIV BX; IDIV What is the correct value of AX, CX, DX at watch point? Make wider data bus path DA: Initially, AX=BX=CX=DX=0, SI=128 watch point:
BX; FF09 MOV AX,30 Using higher-speed bus and us hierarchy What are value of AX,DX after execution of the DA: Zero flag (OF) = not defined
MOV CX,FFFF To move data directly by DMA Temporal locality : be exploited by keeping recently following instructions? Overflow flag (OF) = reset
Write mask byte (in hex) to clear the lower 4 bit of a MUL CX The following sequence of instructions are executed. used instruction and data in cache memory and by MOV EDX, [SI] Sign flag (SF) set
byte value with AND instruction F0 watch point:CX = FFFF, AX = FFD0,DX 002F What is the correct exploiting a cache hierarchy MOV EAX, [SI+4] DX = 203E, AX = 8099 Carry flag (CF) = set
To isolate one or more bits in a byte value, use Consider the following assembly instruction sequence value of AX, DX at watch point? Which statements are correct for HDDs? Enter debug command to fill 256 bytes in data segment
__AND__ instruction. CMP DL, 0 // JB x_label MOV DL,FF Select one or more: starting from 100 with value 0D
Spatial locality : be exploited by moving data
EAX now stored a 32bit IP address of a host. The CMP DL, 9 //JA a_label MOV AL,42 DA: Head, Track, Sector are key parameters for DA: ADD 0D, 256[100]
network ID (netID) is 20 bit and can be extracted from between cache and memory more efficient access data on hard disk Which are correct action for LODSB string operation if
ADD DL, 30h // JMP x_label IMUL DL: AX = FFBE,DX=0000
IP byte anding with a 32bit mask. Write correct a_label: // CMP DL, 0Fh In the RCR instruction, the contents of the destination Bits are stored on tracks DF is reset (=0)
instruction to extract netID from EAX register operand undergoes function as Given a code snippet: Which are correct action for SCASW string operation if DA: Load 8-bit value at memory location pointed by
JA x_label //ADD DL, 31h
and EAX,FFFFF000 DA: carry flag is pushed into MSB then LSB is int ax, bx; DF is set (=1) ES:[DI] into AL
x_label: //MOV AL, DL
The following sequence of instructions are executed. pushed into carry flag ... DA: compare value in AL register with memory Decrease DI by 1
watch point:
What is the correct values at watch point? if (ax >= bx) location pointed by ES:[DI] Given a code snippet:
Choose correct value of AL register at watch point for
MOV AX, 67FE Which could be correct ones for the source operand in ax -=bx; Increase DI by 2 int n = 10;do {n--;} while (n > 0);
different value of DL? DL=55h 85h, DL=0FFh
MOV BX, AX an instruction? else Given a row of memory image in debug Which ones are the equivalent logic sequence of
41h,DL=10 38h,DL=8 0FFh bx -=ax;
MOV CL, BH DA : FE67, 67FE DA: immediate data 0AE8:0120 13 96 D0 E0 D0 E0 A2 1E - 99 80 3E 20 99 instructions in Assembly
Select correct match for AX (Decimal) at watch points: What is the equivalent logic sequence of instructions in
MOV CH, BL memory location 00 75 24 DA: mov cx, 10
MOV AX, 1BC Assembly
The following sequence of instructions are executed. register SI = 120, DI = 128 a_label:
MOV CL, 2 Select one:
What is the correct value of flag bits at watch Convert the 32-bit floating point number A3358000 (in Select correct sequence of instructions to subtract words .....
SHL AX, CL watch point #1: 1064 DA: cmp ax,bx
point? hex) to decimal at [DI] from [SI] then store the dec cx
ADD AX, 166 watch point #2: 266 jl a_label
MOV EAX, 12AE DA : set, reset, set DA: -9.83913471531×10^-18 result at memory location 12A loop a_label
SHR AX, CL watch point #3: 266 sub ax,bx
SUB EAX, 12AF Select correct match for register values at watch points: DA: Step 1: MOV AX, [SI] In multiplication instruction, when the source operand is
SHR AX, CL jmp x_label
Physical address of the stack pointer is 2DA82, stack MOV AX, 152D Step 2: SUB AX, [DI] 8 bit, __will be multiplied with source.
if the location to which the control is to be transferred a_label:
segment located at 1DAE. Computer the value of SP ADD AX, 003F Step 3: SUB AX, [SI] DA: Whatever general purpose register
lies in a segment other than the current one, then the sub bx,ax
register? DA: FFA2 watch point #1: AH = 25 Step 4: MOV BX, 012A Which are valid based index addressing?[BX+DI],
Match the following hexadecimal numbers to octal jump instruction is called:intersegment mode x_label:
ADD AH, 10 [DX+SI]
DA:347, 156, 251 Which could be correct ones for the destination operand The instruction that supports addition when carry exists
watch point #2: AL = 6C Memory dump at 1D20 1D20:0200 00 20 10 5
Enter debug command to fill 256 bytes in data segment in a data movement instruction? register, memory Which of the following is not a data copy/transfer is ADC Given value of register Identify correct value o AH =
Which are the correct actions for SCASW string
starting from 100 with value 0D f 100 1FF 0D location instruction? In computer, how does the processor serve multiple 5Dh, AL = 10h
operation if DF is set (=1)
Given 8bit floatingpoint binary format: 1 (sign) + 3 the instruction, JMP C008:2000h is an example of near DA: Decrease DI by 2 Select one or more: ADC, DAS interrupt request from devices? Given a code snippet (ax, bx are none negative integers):
(exponent) + 4 (mantissa).Convert the 8bit floating jump, far jump Dompare the value in AX register with 16-bit Consider the following assembly instruction sequence Select one: if (ax >= bx) ax -=bx;
point number E7 (in hex) to decimal Given a row of memory image in debug value at the memory location CMP DL, 0 DA: Each device are assigned an interrupt else bx -=ax;
-11,5 0AE8:0120 13 96 D0 E0 00 40 08 42 - 99 80 3E 20 99 Pointed by ES:[DI] and set/clear flag bits JB x_label priority, the device with lower priority will be served. What is the equivalent logic sequence of instructions in
Match the correct answer for binary operations on the 00 75 24 accordingly CMP DL, 9 The following sequence of instructions are executed. Assembly
left SI = 120 What is the correct value of SI, AL (in hex) at watch JA a_label What is the correct value of flag bits at cmp ax,bx
DA: The following instruction is executed:MOV EAX, point: ADD DL, 30h watch point? ja a_label
1111111 111 1111000 [SI+4] 01: MOV SI, 300h JMP x_label MOV AL, 80 sub ax,bx
1100111 111 1100000 Assume the value in EAX is a 32-bit floating-point 02: MOV AL, 10h a_label: MOV BL, 2 jmp x_label
1010101 + 10101 1101010 binary, what is the value of EAX in decimal?: 4000 03: MOV CX, 7 CMP DL, 0Fh MUL BL a_label:
1010110 101 1010001 Given a code snippet: 04: Loop_label: JA x_label watch point: sub bx,ax
1110011 + 11001 10001100 int n = 10;do {n--;} while (n > 0); 05: MOV [SI], AL ADD DL, 37h DA: Overflow flag (OF) = reset, Carry flag (CF) = x_label:
1111111 + 11111 10011110 Which ones are the equivalent logic sequence of 06: ADD AL,10h x_label: set The instruction, MOV AX, 0005h belongs to which
The following sequence of instructions are executed. instructions in Assembly 07: INC SI MOV AL, DL To test one bit in a byte value without destructing the addressing mode?: direct
What is the correct value of CF and OF at DA: mov cx, 10 08: LOOP Loop_label SI = 80h,AL = 80h watch point: byte, use _NOT_ instruction. Which of the following instructions are not valid?
watch point? a_label: Select the correct sequence of instructions to compute - Choose correct value of AL register at watch point for Which are correct about the data registers o DA: MOV DS, B800h
MOV AX,140h ..... 1024/128 (all values different value of DL? Select one or more: MOV SP, SS:[SI+2]
MOV CX,8h loop a_label are in hex). DA: DL=10 38h DA: Complete 32-bit registers: EAX, EBX, EC The following sequence of instructions are executed.
MUL CX mov cx, 10 DA: Step 1: CWD DL=8 41h Higher halves of the 32-bit registers can EAH, What is the correct value of flag bits at watch point?
watch point: CF= reset, OF= reset a_label: Step 2: MOV CX,80 DL=55h 55h EAL, EBH, EBL, ECH, ECL, EDH, EDL.
To test one bit in a byte value without destructing the dec cx Step 3: MOV CL,80 DL=0FFh 0FFh The following sequence of instructions are executed.
byte, use TEST instruction. cmp cx, 0 Step 4: IDIV CL The following sequence of instructions are executed. What is the correct value of flag bits at MOV DL,FF
Given a row of memory image in debug jz e_label Select correct match for AL and carry flag at watch What is the correct value of CF and watch point?
0AE8:0120 13 96 D0 E0 D0 E0 A2 1E 99 80 3E 20 99 jmp a_label point #1: OF at watch point? MOV DL,FF MOV AL,F6 OF = reset , CF = reset
00 75 24 e_label: MOV BL, 8C MOV AX,FFF6h MOV AL,F6
Initially, AX=BX=CX=DX=0, SI=121.What are value The following sequence of instructions are executed. MOV AL, 7E MOV CX,1000h IMUL DL IMUL DL
of CX,DX after execution of the following instructions? What is the correct ADD AL, BL IMUL CX watch point:OF = set, CF = set
MOV DX, [SI] value of AX, CX, DX at watch point? watch point #1: AL 0A,Carry flag set watch point: OF= set, CF= undefined Choose correct features for SRAM and DRAM
MOV CX, [SI+2] DX = D096, CX = D0E0 MOV AX,30 Which could be correct ones DA: In multiplication instruction, when the source operand is
After executing the POP EAX instruction, the stack
Select correct match for register values at watch points: MOV CX,FFFF Select one or more:register, memory location SRAM: Faster access time, cost more per bit, 16 bit, how can the result be taken?:from AX
pointer
MOV AX, 152D MUL CX Write mask byte (in hex) to clear bit 2nd, 3rd, 5th of a smaller size Consider the following assembly instruction sequence
DA: After executing the POP EAX instruction, the
ADD AX, 003F watch point: CX = FFFF, AX = FFD0,DX 002F stack pointer byte value with AND instruction (LSB is 1st bit): DRAM: Slower access time, cheaper cost per bit, CMP DL, 0
watch point #1AH = 25 After executing PUSH EAX instruction, the stack Sign-extend number BF (8-bit binary) to 16-bit. Write 1001011 can manufacture with larger size JB x_label
ADD AH, 10 pointer: decrements by 4 result in hex 91 if the location to which the control is to be transferred The following sequence of instructions are executed. CMP DL, 9 JA a_label ADD DL, 30h
watch point #2AL = 6C the instruction that is used as prefix to an instruction to Which of the following instructions are not valid? lies in a segment other than the current one, then the What is the correct value of flag bits at watch point? Choose... DL=10
A memory location located in extra segment which now execute it repeatedly until the CX register becomes zero jump instruction is call MOV AL, 0F JMP x_label
DA: MOV DS, B800h,MOV SP, SS:[SI+2]
has value of 564F. This memory managed by ES:SI is :REP DA: intrasegment direct mode ADD AL, F1 Choose... DL=8
The following sequence of instructions are executed.
registerpair. SI now points to 905F. Compute the Write mask byte (in hex) to clear all the lower 7 bits of Convert the 32-bit floating point number 44363800 (in watch point: a_label:
What is the correct
physical address of this memory location 5F54F a byte value with AND instruction.AND AL, value of flag bits at watch point? hex) to decimal. DA: Zero flag (OF) = set
Select correct match for AL and carry flag at watch 01111111B DA: 1144403968 Carry flag (CF) = neither set nor reset Choose... DL=55h
MOV AL, 0F
point #1: The instruction that subtracts 1 from the contents of the The following sequence of instructions are executed. Which are correct action for STOSB string operation if CMP DL, 0Fh
ADD AL, F1
MOV BL, 8C specified register/memory location is :DEC What is the correct value of flag bits at DF is reset (=0) Choose... DL=0FFh
watch point: Zero flag (OF) = reset, Carry flag (CF)
MOV AL, 7E What is the meaning of Amdahl's law in processor watch point? DA: Store 8-bit value from AL into memory JA x_label
= set
ADD AL, BL performance evaluation? MOV AX,FFFF location pointed by DS:[SI] ADD DL, 37h
Major structural components of the CPU include:
watch point #1:Carry flag set, AL 0A the maximum speedup of a multicore processor MOV CX,5 Increase DI by 1 x_label: MOV AL, DL watch point: ...
Select one or more:
Convert the 32bit floating point number C4361000 (in Which are the correct actions for LODSW string MUL CX Which set of registers are valid for addressing a stack Choose correct value of AL register at watch point for
DA: Registers
hex) to decimal 728,25 operation if DF is reset (=0) increase SI by 2 watch point: memory location? different value of DL?
Arithmetic and Logic Unit
Which of the following instructions are not legal Load 16-bit value at memory location pointed by DA: Carry flag (CF) = set Select one or more:SS:BX, DS:SI Hereafter is instruction sequence to compute the sum of
Interconnections
addressing? DS:[SI] into AX Overflow flag (OF) = not defined The instruction that is used for finding out the codes in 8 bytes starting at memory address 200. Two lines of
Control Unit
MOV AX, [BX+SP], MOV AX, [SP+1] case of code conversion problems is XCHG code are possibly missing. Choose correct one to fill in?
01: _MOV [SI],200_; possibly missing code The following sequence of instructions are executed. ESI: 32 bit pointer to source memory in data Stack Pointer (ESP): the 32 bit pointer to the top of 0AE8:0120 13 96 D0 E0 D0 E0 A2 1E - 99 80 3E 20 99 DA: DS:[BX] pointed to look-up table
02: MOV AL, 0 What is the correct value of flag bits at watch point? movement instructions stack 00 75 24 Initially, AX=BX=CX=DX=0, SI=128 Which are correct action for LODSW string operation
03: MOV CX, 8 MOV AL, 0F ADD AL, F1 watch point: Which statement is correct about interrupt vector table? Which statements are correct for HDDs? What are value of AX,DX after execution of the if DF is reset (=0)
04: Loop_label: Carry flag (CF) = set, Zero flag (OF) = reset Take up 1024 bytes in the main memory DA: Head, Track, Sector are key parameters for following instructions? DA: increase SI by 2
05: _ CWD_; possibly missing code Memory dump at 1D20:0200 as below: 1D20:0200 00 Store in the beginning area of the main memory access data on hard disk MOV EDX, [SI] MOV EAX, [SI+4] Load 16-bit value at memory location pointed by
06: ADD AX, [SI]; 20 10 5D 55 47 00 90 - 00 10 20 30 40 50 60 70. Given The value in CS is 1FD0h what is the location of next Bits are stored on tracks DA: EDX = 99007524, EAX = 203E8099 ES:[DI] into AX
07: INC SI value of registers: DS = 1D20, SI = 200, BX = 202, AX instruction from 00000h if Instruction pointer is 3CD4h: The instruction that loads effective address is: LEA _ Which are valid based indexed addressing?: [BX][SI] The following sequence of instructions are executed.
08: LOOP Loop_label = 0103 Identify correct value of AX register after 3CD5H The following sequence of instructions are executed. Consider the following assembly instruction sequence What is the correct value of flag bits at watch point? OF
In multiplication instruction, when the source operand is What best describe the Spatial and Temporal Locality? What is the correct value of EAX, EBX, EDX at watch XOR BX, BX CMP DL, 5 JLE a_label = reset, CF = reset
XLAT instruction is executed. AL = 10h, AH = 01h
8 bit, _AL_ will be multiplied with source. Temporal locality: be exploited by keeping recently point? CMP DL,17h JGE a_label MOV BX, 10h The following sequence of instructions are executed.
Which of the following instructions are not valid?
Which are valid based index addressing?:[BX+DI], used instruction and data in cache memory and by MOV EAX,00002000 MOV EBX,00100000 MUL a_label: INC BX watch point: ... Choose correct What is the correct value of AX, DX at watch point?
MOV AX, [BP+2], MOV DS, B800h
[DX+SI], [BX+SI] exploiting a cache hierarchy EBX value of BX register at watch point for different value MOV DL,FF MOV AL,42 IMUL DL
if the location to which the control is to be transferred
The following sequence of instructions are executed. Spatial locality: be exploited by using larger cache watch point:EAX = 00000002, EDX = 00000000, EBX of DL?: DL=0FFh 11h, DL=10 01h, DL=17h 01h, watch point: AX = FF00, DX = FFBE
lies in a segment other than the current one, then the
What is the correct value of AX, CX, DX at watch point? blocks and by incorporating prefetching = 00021000 DL=0Ah 28h
jump instruction is call: intrasegment direct mode The instruction, MOV AX, 1234h is an example of To set one or more bits in a byte value, use _OR _
MOV AX,0020 MOV CX,0010 MUL CL watch The instruction that supports addition when carry exists mechanisms into the cache control logic
To evaluate processor performance, the following Select one: Immediate addressing mode instruction
point: AX = 020F, DX 0000, CX = 00FF is: ADC
indicators and formulas are used: Which of the The following sequence of instructions are executed. Major structural components of the CPU include:
Which set of registers are valid for addressing a stack The instruction that is used for finding out the codes in What is the correct value of flag bits at watch point? DA: Arithmetic and Logic Unit Control Unit
memory location? SS:SP, SS:BP case of code conversion problems is: XLAT following system attributes affects cycle time 
MOV AL, 78 Instruction Pointer (PC)
In computer, how does the processor serve multiple Which statements are correct for HDDs? Processor implementation, Cache and memory MOV BL, 2 MUL BL Select correct match for AL and carry flag at watch
interrupt request from devices? hierarchy watch point:Carry flag (CF) = reset, Overflow flag point #1: MOV BL, 8C
Head, Track, Sector are key parameters for access
Each device are assigned an interrupt priority, the Key parameters to consider when evaluating processor (OF) = reset MOV AL, 7E ADD AL, BL
data on hard disk, Bits are stored on tracks
device with higher priority will be served. Which are correct action for LODSB string operation if hardware include: The following sequence of instructions are executed. watch point #1: AL set, Carry flag 0A
Given a row of memory image in debug 0AE8:0120 13 DF is reset (=0) Reliability, performance, power consumption, size, What is the correct value of flag bits at watch point? Given a code snippet: if (a>=0 && a <=9)
96 D0 E0 D0 E0 A2 1E - 99 80 3E 20 99 00 75 24. cost MOV AL,-5 ADD AL,132 ADD AL,1 x = a + 30h;
Load 8-bit value at memory location pointed by
Initially, AX=BX=CX=DX=0, SI=128.What are value The three key characteristics of memory are: capacity, watch point: else if (a >=10 && a <=15) x = a + 55;
ES:[DI] into AL, decrease DI by 1
of AX,DX after execution of the following instructions? To test one bit in a byte value without destructing the access time and cost. Which of the following DA: Zero flag (OF) = set, Overflow flag (OF) = reset The logic of the above code snippet in assembly is (with
MOV EDX, [SI] MOV EAX, [SI+4]: AX = 203E DX = byte, use _T EST_instruction. relationships hold for a variety of memory technologies? Sign flag (SF) reset, Carry flag (CF) = reset missing lines): 01: CMP DL, 0
8099 Which one best describe cache hit and cache miss? Faster access time, greater cost per bit, Greater In computer, how does the processor serve multiple 02: -JMP a_label - ; possibly missing
Basic functions that a computer can perform including: capacity, smaller cost per bit, Greater capacity, interrupt request from devices? code 03: CMP DL, 9
Cache miss ratio: the number of memory accesses
Data movement, Control, Data processing, Data slower access time DA: Each device are assigned an interrupt priority, 04: -empty - ; possibly missing code 05:
that CPU must retrieve from the main memory per
storage A SRAM memory chip labeled 32x8bit. Which of the the device with higher priority will be served. ADD DL, 30h
the total number of memory accesses
The following sequence of instructions are executed. Cache hit ratio: the number of memory accesses following is correct pinout regarding address and data the instruction, JMP C008:2000h is an example of 06: -JMP x_label- ; possibly missing
What is the correct value of flag bits at watch point? that the CPU can retrieve from the cache per the lines? 15 address pins, 8 data pins intrasegment mode code a_label:
MOV AX,FFFF MOV CX,5 MUL CX watch point: total number of memory accesses In the interconnection system, the number of address in multiplication instruction, the result is taken from AX 08: CMP DL, 0Fh
Identify the correct sequence to update a page onto a lines are governs by: CPU means the source operand is__ bit 16 09: -empty - ; possibly missing code 10:
Overflow flag (OF) = reset , Carry flag (CF) = reset
Memory dump at 1D20:0200 shown as below: ADD DL, 55
To clear one or more bits in a byte value, use _AND_ flash memory?
Choose correct RAID volume definitions for a request 1D20:0200 00 20 10 5D 55 47 00 90 - 00 10 20 30 40 x_label:
instruction. S3: the entire block is being read from flash into
2T storage. 50 60 70 12: MOV AL, DL
The instruction, MOV AX, 0005h belongs to which RAM then request data in page is update
RAID 1 Mirror volume 2 x 2T HDDs are needed, no Given value of registers: Given a row of memory image in debug 072C:FFF0
addressing mode? Immediate S1: the entire block of flash memory are erased
data lost when the primary storage fails Spanned DS = 1D20, ES = 1D20, DI = 20A 00 00 00 01 00 00 2C 07 - 07 01 2C 07 17 72 00 00
Which are correct about the data registers of IA-32 St2: The entire block from RAM then is written
Volume 2T HDD + more HDDs to extend storage, no The following sequence of instructions is being SS=072C, SP=FFF8, DS = 072C Assume the stack now
processors: back to the flash memory
fault tolerance, data lost when one HDD fails executed: MOV SI,208h stores two (2) 16-bit parameters and one (1) 16-bit
complete 32-bit registers: EAX, EBX, ECX, EDX Choose correct set of registers for x86 processor
RAID 0 Striped volume 2 x 1T HDDs are needed, MOV AX,0040h MOV CX,000Ah CLD return address in following order: stack top (return
The following sequence of instructions are executed. Data pto source memory in extra segment ES: SI
enhance data transfer, no fault tolerance, data lost REPNZ SCASB address) >> parameter #1 >> parameter #2. The
What is the correct value of flag bits at watch point? Pointer to variable in stack SS: BP
when one HDD fails watch point: following sequence of instructions are executed. What
Instruction p CS: IP
MOV AL,-5 SUB AL,124 watch point: RAID5 Volume At least 3 x 2T HDDs, faulttolerance, ..... is the correct values at watch points?
Data p in data segment DS: BX
Overflow flag (OF) = set, Carry flag (CF) = set, Zero no data lost, no downtime What is the correct value of AX, SI, DI registers at MOV BP, SP
To balance the super speed of CPU with the slow
flag (OF) = reset, Sign flag (SF) set Consider a 32bit microprocessor whose bus cycle is the watch point? watch point #1 (BP): AX = 2C07
response of memory, which of the following measures DA: SI = 020Ch, DI = 4030h, AX = 020Bh MOV AX, [BP+2]
Enter debug command to fill 256 bytes in data segment same duration as that of a 16bit microprocessor.
have been made by engineers in system design? What is the correct value of SI, AL (in hex) at watch watch point #2 (AX): BP = FFF8
starting from 100 with value 0D:F 100 1FF 0D Assume that, on average, 30% of the operands and
Make wider data bus path, Make use of both onchip point: ADD AX, [BP+4]
For better speed, in CPU design, engineers make use of instructions are 32 bits long, 40% are 16 bits long, and
and offchip cache memory, Using higherspeed bus 01:MOV SI, 300h watch point #3 (AX): SUB AX, [SI]
the following techniques: Pipelining, Branch 30% are only 8 bits long. Calculate the improvement
and us hierarchy 02:MOV AL, 10h MOV DI, 120
prediction, Speculative execution In computer, how does the processor serve multiple achieved when fetching instructions and operands with 03:MOV CX, 7 MOV [DI], AX
The following sequence of instructions are executed. interrupt request from devices? the 32bit microprocessor? 23% 04: Loop_label: Given a code snippet to look for a value (from AL) in
What is the correct value of CF and OF at watch point? Each device are assigned an interrupt priority, the Consider a magnetic disk drive with 8 surfaces, 512 05:MOV [SI], AL memory buffer Buff Buff DB 11,22,33,44,55
MOV AX,FFF6h MOV CX,1000h IMUL CX watch device with higher priority will be served tracks per surface, and 64 sectors per track. Sector size 06:ADD AL,10h ................
point: CF= reset , OF= reset What are the features of directmapping cache is 1 kB, the average seek time is 10.2 ms and the drive 07:INC SI 01: LEA DI, Buff
Which are correct action for SCASW string operation if organization? rotates at 3600 rpm. What is average access time. Given: 08:LOOP Loop_label watch point:SI 308h, AL = 70h 02: - Empty - ; possibly missing code 03:
DF is set (=1) Thrash > low hit ratio, Simple and inexpensive Rotational delay = 1/(2r), where r is the rotational speed Basic functions that a computer can perform including: MOV AL,33
compare value in AL register with memory location Which one is not correct? in revolutions per second: 16.3 Direct memory access Data processing Control Data 04: MOV CX,5
pointed by ES:[DI], increase DI by 2 EEPROM is erasable by exposing under UV Convert the 32-bit floating point number 44363C00 (in storage a_label:
Given a row of memory image in debug PROM is nonvolatile memory Given a code snippet: int ax, bx; 05: - INC DI - ; // code 06:CMP Byte Ptr
hex) to decimal
0AE8:0120 13 96 D0 E0 D0 E0 A2 1E - 99 80 3E 20 99 Flash memory can only be erased electrically byte by DA: 1144404992 if (ax >= bx) ax -=bx; [DI],AL
00 75 24 SI = 120, DI = 128.Select correct sequence of byte The instruction that subtracts 1 from the contents of the Else bx -=ax; 07: -DEC DI- ; // code 08:
instructions to subtract words at [DI] from [SI] then Which set of registers are valid for addressing a specified register/memory location is What is the equivalent logic sequence of instructions in LOOPNZ a_label
store the result at memory location 12A memory location? DS:SI, DS:BX, CS:IP DA: SUB Assembly ...
Step 1: MOV AX, [SI] Step 2: SUB AX, [DI] Step Which are valid based index addressing? [BX+SI], Memory dump at 1D20:0200 as below: DA: cmp ax,bx multiplication instruction, when the value of source
3: MOV BX, 012A Step 4: MOV [BX], AX [BX+DI] 1D20:0200 00 20 10 5D 55 47 00 90 - 00 10 20 30 40 jbe a_label operand is 12 (decimal), the other operand is loaded in
Select correct match for register values at watch points: 50 60 70 Given value of registers: DS = 1D20, ES = sub ax,bx AX. Which registers can be used to load source operand?
Which are valid index addressing? [SI]
MOV AX, 4FCA ADD AX, DDA9 1D20, DI = 20A, SI = 208, BX = 202, AX = 0103, CX jmp x_label a_label: DX
Which are correct about the data registers of IA32
watch point #1: ADD AH, F3 watch point #2: ...... = 0003 and flag bit DF = 1 What is the correct value of sub bx,ax x_label: The following sequence of instructions are executed.
processors:
watch point #2: AL = 73, watch point #1: AH = 30 AX, SI, DI registers after the instruction REP LODSW Given an assembly code copying the memory buffer What is the correct value of AX and DX (in hex) at
Lower halves of the 16registers an be used as 8bit
Compute the physical address of the next instruction is executed? Buff1 to Buff2: PUSH DS POP ES watch point?
data registers: AH,AL,BH,BL,CH,CL,DH,DL
will be execute if instruction pointer is 091D and code DA:DI = 0202h, AX = 5040h,SI = 5547h LEA SI, Buff1 LEA DI, Buff2 MOV
complete 32bit registers: EAX, EBX, ECX, EDX
segment located at 1FAF: 2040D Which are correct action for SCASW string operation if CX,20 ;--- Start of block cp_loop: MOV AL, MOV AX,FFF6h
Lower halves of the 32registers an be used as 4 16bit
Convert the 32-bit floating point number 44363800 (in DF is reset (=0) Byte Ptr [SI] MOV Byte Ptr ES:[DI], AL MOV CX,1000h
data registers: AX,BX,CX,DX
hex) to decimal: 1144403968 DA: compare value in AL register with memory INC SI INC DI LOOP cp_loop ; --- IMUL CX : AX= FFF6, DX= 6000
Which are correct about 32 bit index registers of IA32
The following sequence of instructions are executed. location pointed by ES:[DI] End of block Choose equivalent string operations in
processors: place of block code from ---Start of block to ---End of
What is the correct value of flag bits at watch point? Which are correct about the Pointer registers of IA-32 the instruction, CMP to compare source and destination
EDI: 32 bit pointer to destination memory in data block
MOV AL, 80 MOV BL, 2 MUL BL watch processors: operands by
movement instructions DA: CLD cp_loop: REP MOVSB LOOP cp_loo
point:Overflow flag (OF) = reset, Carry flag (CF) = ĐA: Base Pointer (BP): The 16 bit pointer refers to comparing
DI: 16 bit pointer to destination memory in data After each execution of POP instruction, the stack
reset stack memory Totest one bit in a byte value which can be destructive.
movement instructions pointer is: increment by 1
Instruction Pointer (IP): the 16 bit register points to Use TEST_instruction.
Which could be correct ones for the destination operand SI: 16 bit pointer to source memory in data Given a row of memory image in debug
the next instruction to be execute Which are correct input for XLAT instruction
in a data movement instruction? all choices are correct movement instructions

You might also like