Tutorial 3
Tutorial 3
30.01.2024
31.01.2024
01.02.2024
05.02.2024
Contents
Additionally, we have
IP = 1232H, SP = 1100H, offset in DS = 0020H.
(b)
The current top of the stack is referenced by SS:SP. The base address of the
stack segment is 25260H. Therefore, the corresponding physical address is
(25260H + 1100H) = 26360H.
(c)
The data that needs to be accessed from DS is given by DS and the
specified offset. The base address of the DS is 33330H. The physical
address of this data byte is calculated as (33330H + 0020H) = 33350H. 4
However, since AX contains two bytes of data, the lower byte (78H) is
stored in the address 15344H and the higher byte (EEH) in the next
address (recollect the ‘little endian’ concept)
6
The lower byte (78H) is stored in the address 14520H and the higher
byte (EEH) in the next address.
The lower byte (78H) is stored in the address 14520H and the higher
byte (EEH) in the next address.
Let the starting location address be 0 H and each memory location can
hold 8 bits of data.
Thus, to hold 67108864 bits of data, we would require 65,536 locations
indexing from 0 to 65,535. Converting 65,535d = FFFFH.
(a)MOV BL,9FH
ADD BL,61H
(b)MOV DX,10FFH
ADD DX,1
11
9FH+61H = 100H
Interpretation:
10FFH+1 = 1100H
Interpretation:
MOV AX,94C2H
MOV BX,323EH
ADD AX,BX
MOV DX,AX
MOV CX,DX
14
15