This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

do reply as soon as possible.problem with block transfer and sorting

i want to perform descending order of 10 bytes array.. i am facing problem while executing for entering numbers in memory to operate ..i followed this steps-
1.built done properly without error and warning.
2. debug start/ stop
3. edited memory location using modify option using right click in memory window
4. den i did run option
5. but there was no change.. or sorting in descending order.
please help...
my code is
; descending order ORG 0000H SJMP START

ORG 7000H DB 21H DB 34H DB 65H

ORG 0020H
START: MOV R0, #0AH
L1: MOV DPTR,#7000H MOV R1, #09H
L2: MOV R2, DPL MOVX A,@DPTR MOV 0F0H, A INC DPTR MOVX A,@DPTR CJNE A, 0F0H, DN AJMP SKIP
DN: JC SKIP MOV DPL, R2 MOVX @DPTR,A INC DPTR MOV A, 0F0H MOVX @DPTR,A
SKIP: DJNZ R1,L2 DJNZ R0,L1
L3: SJMP L3 END

0