Assignment Help, Cloud Based ERP System, Microsoft NAV Certification
WELCOME !!

Please Register, ask for assignment solutions & post the solutions if you know any.

LETS START POSTING YOUR IDEAS AND THOUGHTS AND BUILD THE COMMUNITY OF EXPERTS.

Assignment Help, Cloud Based ERP System, Microsoft NAV Certification
WELCOME !!

Please Register, ask for assignment solutions & post the solutions if you know any.

LETS START POSTING YOUR IDEAS AND THOUGHTS AND BUILD THE COMMUNITY OF EXPERTS.

Assignment Help, Cloud Based ERP System, Microsoft NAV Certification

Stock Market, Online Tutoring, Cloud Based ERP System, Microsoft Dynamics Reporting, Microsoft Nav Certification

Similar topics

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

12064 Poush (Reg./Back) Q. N. 3 Empty 2064 Poush (Reg./Back) Q. N. 3 13th April 2009, 9:51 am

diadem59

diadem59
Administrator
There are two tables T1, T2 in memory having ten eight bit data in each. Write a program for 8085 to find the difference of the corresponding element of these two tables. Store the result of each operation on the corresponding element of the third table. Remember that the result should not be negative; it hold be |T1-T2|.

Solution:


Code:
LXI H,0A000H  ;T1
LXI D,0B000H  ;T2
LXI B,0C000H  ;Result

Re:
LDAX D
CMP M
JNC Skip
XCHG
LDAX D

Skip:
SUB M
STAX B
INX H
INX D
INX B
MOV A,L
CPI 0AH
JNZ Re
HLT

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum