Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MOV R2, #4h ;counter
- MOV DPTR, #3000h ;External Memory
- MOVX A, @DPTR
- L1: MOV B, A
- L2: DJNZ R2, L3 ;counter check
- SJMP STP
- L3: INC DPTR
- MOVX A, @DPTR
- CJNE A, B, NEQ
- SJMP L2
- NEQ: JNC L2
- SJMP L1
- STP: MOV R1, B
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement