Find the contents of indicated registers or memory after exe
Solution
Before discussing about solution we need to discuss about these given registers so that we easily understand their functionality.
So,Here are the summary of the given register, please read it carefully:-
AX = AX is a general purpose register and is also considered as the \"Primary Accumulator\". It is used to perform arithmetic operations like ADD & SUB, MUL & DIV which require that one of the operands to be saved in it.
CX = CX is also a general purpose register and known as the \"count-register\". It\'s main function is used count or determine the iterative operations like: Looping instructions,shift and rotate instructions and the string instructions.
DS = DS is a segment register it is used to determine the \"data-segment\". It is also considered as the default segment for most memory accesses.
SI = SI is a special-purpose Index registers and is considered as the \"source index\".It take as a pointer to the present character being read in a string instruction. SI is also accessible as an offset to add to BX or BP when performing indirect addressing.
DI = DI is also a special-purpose Index register and to be considered as the \"destination index\". It take as a pointer to the present character being written or compared in a string instruction. It is also accessible as an offset like SI.
=========================================
Now as per the given programme here is the solution:-
Mov ax, 1750 ;Ax=1750
Mov ds,ax ;DS=AX=1750
Mov si,0100 ;SI = 0100
Mov di,200 ;DI = 200
Mov cx,0009 ;CX = 0009
Inc cx ;CX = 000A
Inc si ;SI = 0101
Mov al,[si+100H]
Ax=1750
CX = 000A
DS=1750
SI = 0101
DI = 200
