ANL A, R1
MOV R4, A
MOV A,R2
ANL A,R3
ORL A, R4
MOV DPTR, #1000H ; Load external mem. address
MOVX @DPTR, A