Practical Final
Practical Final
Q1(a)
U 100,107 Unassemble(Convert object code to symbolic
code) from code segment(CS) starts from
offset address(IP) 0100h until 0107h(for a
total 0f 8 bytes)
Q1(c)
Q1(d)
Q2
A 100 AX = 0123h
MOV AX,0123 AX = AX+0025h → AX=0123h+0025h → AX
ADD AX,0025 = 0148h
MOV BX,AX BX = BX+AX → BX = 0148h+0148h → BX =
ADD BX,AX 0290h
MOV CX,BX CX = BX = 0290h
SUB CX,AX CX = CX - AX → CX = 0290h-0148h → CX =
SUB AX,AX 0148h
JMP 100 AX = AX - AX → 0148h-0148h → AX = 000h
IP 0100h
(b)
( c ) P = 100,8
Do program execution,from code segment (CS) starts from offset address(IP) 0100h,for a total
of 8 instructions.
The “P” command is used when the user only wanted to view the final result (because the
details working might too long to display on 1 windows and no scrolling is allowed)
NOTE : JMP 100 is the last instruction
Segment:offset address NV UP EI PL NZ NA PO NC
(b)
(c)
4.
(a)
MOV AL,05 AL = 05h
MOV BL,10 BL = 10h
MUL BL AX=AL*BL→AX=05h*10h→AX=0050h
JMP 100 IP=0100h
4b
4c
5(Bitwise Logical operation = logicgate
C
D