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
The forum isn't here to do your homework, check your notes or required reading, please also read posting instructions related to pasting source into messages.
This isn't a homework.. have problem using movx instructions..edited memory of 7000h is not sorted after execution.. and annywhys the forum is for helping . So I expect the same..
Ans if u can help instead of posting comment like this..
You getting low on time before the assignment is due?
You think you're short of time?
You think we have time to spare to decrypt your incorrectly formatted post?
You'd better think again.
... is to follow the posting instructions.
Erik