Micro-processor,Micro-Controller and C++ programming
Monday, April 5, 2010
Statement:
Write an ALP to add the two numbers FFH & 0B H. From the result subtract numbers 05 H. Store highter
order byte in H & store lower order byte in L.
MVI A,FFH
MVI B,0BH
ADD B
SBI 05
MOV L,A
MVI A,00
RAL
MOV H,A
HLT
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment