I need Help please
|
Newbie Member
|
|
| 22Sep2009,18:12 | #1 |
|
can u send me a program for sorting of numbers in assembly language for 8051 microprocessor
|
|
~ Б0ЯИ Τ0 С0δЭ ~
|
![]() |
| 22Sep2009,18:53 | #2 |
|
No we can't.
How far have you reached and where are you stuck ?? Show us some code and we will help you advance. We can't do the whole thing for you. Well, to help you get started, here is a MASM code sort an array of len DWORDS : Code: asm
|
|
Newbie Member
|
|
| 25Sep2009,22:27 | #3 |
|
What i did is that:
CSEG AT 20 ?C_START:MOV A,0x40 CJNE A, #255, NOTEQUAL jmp loop NOTEQUAL: INC R3 MOV A,0x41 CJNE A, #255, NOTEQUAL2 jmp Final NOTEQUAL2: INC R3 MOV A,0x42 CJNE A, #255, NOTEQUAL3 jmp Final NOTEQUAL3: INC R3 MOV A,0x43 CJNE A, #255, NOTEQUAL4 jmp Final NOTEQUAL4: INC R3 MOV A,0x44 CJNE A, #255, NOTEQUAL5 jmp Final NOTEQUAL5: INC R3 Final: mov R0,#0x40 mov a,@R0 mov 0x60, a INC R0 mov a, @R0 SUB a,0x60 JC Final LOOP: ljmp loop PUBLIC ?C_START END can you fixed it and where I make my mestake |

