We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
Seo oa is created, then type tasm filename.
d, Type the program
Once the assembly language Progra is ee
cae emmand prompt and press Enter Key io a
Type tlink [Link] or link filename on command Pro P
create filename .exe file. d
Pilly, fi debug [Link] or td [Link] On the command prompt
press Enter Key to debug your
Observe the couients of registers,
gram step by step. 3
nary Jocation used and status of flags. —
he
XII Resources used (Additional)
XIII Observations:
1) Observe and write the contents of Register using debugger TD or Debug after
execution of program.
‘Table 1: Contents of Registers after the Addition of Two 16-bit numbers
Registers Flag Register
After Before
as G8AC 1234 Carry Flag CF
BX 5678 Zero Flag ZF
cs 0000 Sign Flag SF
pag 44AD Overflow Flag
au 2000 Parity Flag PF
DI 0006 _| Auxiliary Carry Flag | AF
Be cone Thterrupt Flannel
SP COO |__ Direction Flag DF
Ds 44AD
ES, 44D
& 4aAke
cs
1 O00 E
2) Observe and write the contents of memoi i
SEGUE LID on Debi aby Or eet a eee
Maharashtra State Board of Technical Education a
—Ts
‘Microprocessor (22415)
Table 2: Contents of memory location in Code Segment
Address Contents Address Contents
‘CS:0000 Daan 44 CS:0008 BBIEO2Co |
‘CS:0001 = CS:0009 ze
Cs:0002 = ‘CS:000A * u
€S:0003 A CS:000B =
CS:0004 ot CS:000C o3c3
CS:0005 A ‘CS:000D =
CS:0006 OEE CS:000E A 20400 | |
[“€s:0007 = CS:000F = »
3) Observe and write the contents of memory location in Data Segment using
debugger TD or Debug ;
Table 3: Contents of memory location in Data Segment
[___ Address Contents ‘Address Contents
DS:0000 {234 DS:0008 =
DS:0001 rs DS:0009 =
DS:0002 Gers DS:000A =
DS:0003 a DS:000B
DS:0004 6 E40 DS:000C ts
DS:0005 = DS:000D
DS:0006 = DS:000E,
DS:0007 = DS-000F
XIV Program Code with commentsMicroprocessor (22415)
XVII. Exercise
Note: Faculty must ensure that every group of students use different input value.
(Use blank space provided for answers or attach more pages if needed)
1, Write the content of AL register and status of flags after execution of following
code
MOV AL, 99
ADD AL, 01
2. Write an ALP for addition of two 32 bit numbers,
(Space for answers)
Maharashtra State Board of Technical Education
=4
‘Maharashtra State Board of Technical Education