Friday, July 15
8051 Assembly Address Based 8 bit Addition with carry program
ORG 0000H
CLR C
MOV R2, #00H
MOV DPTR, #0030H
MOVX A, @DPTR
MOV R0, A
INC DPTR
MOVX A, @DPTR
MOV DPTR, #0090H
ADD A, R0
JNC OVER1
INC R2
MOVX @DPTR, A
MOV A, R2
INC DPTR
MOVX @DPTR, A
OVER1: MOVX @DPTR, A
MOV A, R2
INC DPTR
MOVX @DPTR, A
MOV PCON, #02H
8051 Assembly Address Based 8 bit Addition program
ORG 0000H
MOV DPTR, #0030H
MOVX A, @DPTR
MOV R0, A
INC DPTR
MOVX A, @DPTR
ADD A, R0
MOV DPTR, #0090H
MOVX @DPTR, A
MOV PCON, #02H
8051 Assembly 8 bit Addition program
ORG 0000H
MOV A, #25H
MOV R0, A
MOV A, #90H
ADD A, R0
MOV PCON, #02H
Subscribe to:
Posts (Atom)