Created
September 2, 2015 17:31
-
-
Save kp96/710d49fcfdbc043fd3e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MOV R1,#0AH | |
MOV R2,#00H | |
MOV A,#00H | |
MOV DPTR,#2000H | |
MOVX @DPTR, A | |
INC A | |
INC DPTR | |
MOVX @DPTR, A | |
DEC R1 | |
DEC R1 | |
INC DPTR | |
MOV A,#00H | |
MOV B,#01H | |
LOOP: ADD A,B // A = A + B | |
MOV R2,A // C = A + B | |
MOVX @DPTR, A | |
INC DPTR | |
MOV A,B// A = B | |
MOV B,R2// B = C | |
DJNZ R1,LOOP | |
END | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment