Professional Documents
Culture Documents
Coal Lab Imran Shaheer 19F-0285 Problem # 1: Problem 1.1
Coal Lab Imran Shaheer 19F-0285 Problem # 1: Problem 1.1
Imran Shaheer
19F-0285
Problem # 1:
Problem 1.1
0000 78
0001 56
0002 34
0003 12
Problem 1.2
Problem 1.3
Size is different that’s why we need PTR operator
Problem 1.4
There will be no error.
Problem 1.5
wvar is 0101h
count has no address
Problem # 2:
Problem 2.1
Problem 2.2
Problem 2.3
Problem # 3:
.MODEL SMALL
.DATA
CHG DB ?
CNT DB 0AH
.CODE
START:
MOV AX,@DATA
MOV DS,AX
LEA SI,CHG
MOV CL,CNT
MOV AX,00H
MOV BX,01H
L1:
ADD AX,BX
MOV [SI],AX
MOV AX,BX
MOV BX,[SI]
INC SI
LOOP L1
INT 3H
END START
Problem # 4:
.model small
.stack 100h
.data
.code
mov ds, ax
mov ax,VARR
mov bx,VARR+2
mov cx,VARR+4
mov dx,VARR+6
mov ax,SARR
mov bx,SARR+1
mov cx,SARR+2
mov dx,SARR+3
mov AH,4CH
int 21h