Professional Documents
Culture Documents
Transfer 5 Bytes of Data From One Location To Another 8051
Transfer 5 Bytes of Data From One Location To Another 8051
Factorial in -8051
/*FACTORIAL OF A NUMBER IN R7*/
ORG 0000
MOV R1,#05H
MOV R7,#01H
MOV A,R7
CJNE R1,#00,UP
SJMP STOP
UP:
MOV B,R1
MUL AB
DJNZ R1,UP
STOP:
MOV R7,A
END