Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
8Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
8086 Lab Programs

8086 Lab Programs

Ratings: (0)|Views: 7,095|Likes:

More info:

Published by: Manjesh Kumar Kakade on Jun 30, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

12/06/2014

pdf

text

original

 
1 |
Page
 
1.
 
ADDITION OF TWO 8-BIT HEXADECIMAL NUMBERS
DATA SEGMENT
MESS1 DB 0AH,0DH,'ENTER FIRST NUMBER:','$'MESS2 DB 0AH,0DH,'ENTER SECOND NUMBER:','$'MESS3 DB 0AH,0DH,'SUM OF TWO 8-BIT NUMBER IS:','$'
DATA ENDSCODE SEGMENT
ASSUME CS:CODE,DS:DATASTART:MOV AX,DATAMOV DS,AXLEA DX,MESS1MOV AH,09HINT 21HCALL READMOV BL,DLLEA DX,MESS2MOV AH,09HINT 21HCALL READMOV CL,00HADD BL,DLJNC NEXTINC CLNEXT:CALL DISPMOV AH,4CHINT 21H
READ PROC NEARPUBLIC READ
MOV AH,01HINT 21HMOV DL,ALMOV CL,04HSUB DL,30HCMP DL,0AHJC R1SUB DL,07HR1:SHL DL,CLMOV AH,01HINT 21HSUB AL,30HCMP AL,0AHJC R2SUB AL,07H
 
2 |
Page
 
R2:AND AL,0FHOR DL,ALRET
READ ENDPDISP PROC NEARPUBLIC DISP
LEA DX,MESS3MOV AH,09HINT 21HMOV DL,CLADD DL,30HMOV AH,06HINT 21HMOV CL,04HMOV DL,BLSHR DL,CLCMP DL,0AHJC L1ADD DL,07HL1:ADD DL,30HMOV AH,06HINT 21HAND BL,0FHCMP BL,0AHJC L2ADD BL,07HL2:ADD BL,30HMOV DL,BLMOV AH,06HINT 21HRET
DISP ENDPCODE ENDSEND STARTOUTPUT:
ENTER FIRST NUMBER : E9ENTER SECOND NUMBER : FASUM OF TWO 8-BIT NUMBER IS : 1E3ENTER FIRST NUMBER : ABENTER SECOND NUMBER : CDSUM OF TWO 8-BIT NUMBER IS : 178
 
3 |
Page
 
2.
 
ADDITION OF TWO 8-BIT BCD
DATA SEGMENT
MESS1 DB 0AH,0DH,'ENTER FIRST NUMBER:','$'MESS2 DB 0AH,0DH,'ENTER SECOND NUMBER:','$'MESS3 DB 0AH,0DH,'SUM OF TWO 8-BIT NUMBER IS:','$'
DATA ENDSCODE SEGMENT
ASSUME CS:CODE,DS:DATASTART:MOV AX,DATAMOV DS,AXLEA DX,MESS1MOV AH,09HINT 21HCALL READMOV BL,DLLEA DX,MESS2MOV AH,09HINT 21HCALL READMOV CL,00HMOV AL,BLADD AL,DLDAAJNC NEXTINC CLNEXT:MOV BL,ALCALL DISPMOV AH,4CHINT 21H
READ PROC NEARPUBLIC READ
 MOV AH,01HINT 21HMOV DL,ALMOV CL,04HSUB DL,30HCMP DL,0AHJC R1SUB DL,07HR1:SHL DL,CLMOV AH,01H

Activity (8)

You've already reviewed this. Edit your review.
3lv1z liked this
1 hundred reads
Florin Bogdan liked this
An Dao Ngoc liked this
OIIOIIO liked this
Anshul Kirti liked this
Siva Varma Datla liked this
Vaheeda Begum liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->