8085 Programming : store the nos in a memory loc. In the reverse order in another memory location
MVI C, 0AH ; Initialize counter LXI H, 2200H ; Initialize source memory pointer LXI D, 2309H ; …
MVI C, 0AH ; Initialize counter LXI H, 2200H ; Initialize source memory pointer LXI D, 2309H ; …
LDA 2200H MOV C, A ; Initialize counter LXI H, 2201H ; Initialize pointer MVI E, 00 ; S…
LDA 2200H MOV C, A ; Initialize counter MVI B, 00H ; sum = 0 LXI H, 2201H ; Initialize pointer BACK…
MVI B,00H MVI C,08H MOV A,D BACK: RAR JNC SKIP INR B SKIP: DCR C …
MVI C, 0AH ; Initialize counter LXI H, 2200H ; Initialize source memory pointer LXI D, 2300H ; Ini…
LDA 2200H MOV C,A ; Initialize counter LXI H, 2201H ; Initialize pointer SUB A ; Sum lo…
LDA 2200 MOV C, A ; Initialize counter SUB A ; sum = 0 LXI H, 2201H ; Initialize pointer BACK: ADD M …
MOV A, L ; Get lower 2 digits of no. 1 ADD E ; Add two lower digits DAA ; Adjust result to valid BCD STA 2300H ; Store partial result MO…
ADDITION OF TWO 16BIT NUMBERS SUM 16 BITS OR MORE Manually strore 1st 16 bit no in the memory location C050 & C051 in reverse order Manually stor…
If 2nd no is greater than 1st no then the answer will in 2's complement Manually strore 1st 8 bit no in the memory location C050 Manually store…
Exchange the contents of memory locations 2000H and 4000H. Program 1: LDA 2000H : Get the contents of memory location 2000H into accumulator MOV B, A…
Program 1: MVI A, 52H : Store 32H in the accumulator STA 4000H : Copy accumulator contents at address 4000H HLT : Terminate program execution Program…
LHLD 2501 XCHG LDA 2503 LXI H,0000 MVI C,08 LOOP: DAD H RAL JNC AHEAD DAD D AHEAD…
LHLD 2501 LDA 2503 MOV B,A MVI C,08 LOOP: DAD H MOV A,H SUB B JC AHEAD MOV H,A INR L AHEA…
The number to be complemented is stored in C050. Answer is stored in C051 LDA C050 CMA INR A STA C051 HLT EXAMPLE-> C050=96 An…
The 16bit number is stored in C050,C051. The answer is stored in C052,C053 LXI H,C050 MVI B,00 MOV A,M CMA ADI 01 STA C052 …
The number to be complemented is stored in C050. Answer is stored in C051 LDA C050 CMA STA C051 HLT EXAMPLE-> C050=96 Answer-> …
The 16bit number is stored in C050,C051 The answer is stored in C052,C053 LXI H,C050 MOV A,M CMA STA C052 INX H MOV A,M C…