Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1,Check the best answer. This register is the program counter for the CPU we are

ID: 3909280 • Letter: 1

Question

1,Check the best answer.

This register is the program counter for the CPU we are studying.

EDI ; ESI ; EFLAGS ; EIP ; EDX

2,Fill in multiple blanks.

Suppose that initially EDX = 0000FFFFh and DX is incremented (DX <-- DX + 1), then EDX = ________h, DX=________h,and DL=________h.

3,Check all that apply.

These registers are accessible 16-bit registers for the CPU we are studying.

DS; CX; AH; DX; SS; EAX; ESI

4,Check all that apply.

For the CPU we are studying, check all registers that are strictly addressing registers: par convention, these registers are meant to store/compute addresses.

ESP; EBX; ESI; CX; EDX; EDI

5,Check the best answer.

Consider the following instruction

MOV EBX, 1A2BC3D4h

MOV AX, BX

After this program is executed, the register AH will contain _____________

C3h; C3D4h; 1A2Bh; D4h; Undetermined

Undetermined ; 2Bh ; C3h ;D4h ;1AH

6,Check the best answer.

Consider the following program

MOV EBX, 1A2BC3D4h

MOV AX, BX

After this program is executed, the register AX will contain ____________; BX will contain _____________.

Explanation / Answer

1. Program Counter is a register that holds the address of the instruction executing currently. After execution of each instruction the value of program counter being incremented by 1. When systm restarts the program counter value set to 0. This program counter generally called instruction pointer(IP) in intel and Itanium microprocessors. For 32-bit systems it is reffered as EIP. So EIP is that register which is used as program counter.

2. Adding one to DX register changes the contents is as followed
EDX = 0000FFFFh if DX <-- DX+1 then EDX = 00010000, DX = 0000h and Dl = 00h.
As DX is divided into DH and DL which are 8 bit registers DL is for 0-7 and DH is for 8-15. so DL holds 2 lower bits of DX.


3. Some registers which are most commonly being used in 16 bit register and is accessible as well are AX,BX,CX,DX,SI,DI,BP,SP and some segment registers are CS,DS,ES,SS. Hence from the given options accessible 16 bit registers are DS,CX,DX and SS. DS register points where variables are being defined. SS generally points at the segment containing stack. CX is count register stores counts of bits. DX is data register and being used for IN and OUT operations.

4. Register which is strictly being used for addressing is EBX which holds base registers. ESP which is also known as Stack Pointer also being used for storing address of top item on the stack. Some registers are also there which are used as for address storign but sometime also used for storing data like ESI and EDI these two registers used for pointing addressing of data and sometimes aslo used as source for string processing. EDX is count register whereas DX is data register. Hence optios EBX and ESP are correct answers.

* we are required to do four parts of a given question.

*If you have any problem with the answer or want me to edit the answer just let me know in the comments and i will try to get on it as soon as possible. Do give a plus if this answer helps.