![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
I need to ask about the mechanism of generating ascending number code,the numbers are taken from a block starting from address 30h and its length stored in address 31h.it's required to put those numbers in ascending order in a block of numbers starting (for example) from address 60h.
any clue will be appreciated. |
|
|
|
|
|
|
(permalink) |
|
You are refering to a sorting algorithm. The two which might be applicable in your case are the Bubble Sort and the Insertion Sort. Google them and get millions of hits
|
|
|
|
|
|
|
(permalink) |
|
Sorting is complexity of Algorithm. But, it is your solution.
Wow! Syria is beautiful country.
__________________
Microcontroller Programming: http://mcu-programming.blogspot.com uC - News, Resources and Tutorials |
|
|
|
|
|
|
(permalink) |
|
what did you mean exactly by sorting and algorithm,i thought that they are the same
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
sort (vt.) arrange a collection of objects according to an ordering rule (eg. ascending or descending) algorithm (n.) a sequence of steps which lead to a desired result. A sorting algorithm is different from a random number generating algorithm. |
||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| hyperterminal communication w/ 8051 | spyghost | Micro Controllers | 8 | 22nd May 2008 10:54 AM |
| 8051 Microcontroller (Urgent Help) | UAE_Engineer | Micro Controllers | 5 | 22nd March 2007 11:13 AM |
| Could I get away with this? (8051 + AM29F010B) | mstechca | Micro Controllers | 0 | 9th March 2006 02:04 AM |
| interfacing 16*16 matrix display with 8051 | pmphilip | Micro Controllers | 0 | 1st February 2005 03:47 AM |
| MT8816 with Microcontroller 8051 | dereksohail | Micro Controllers | 0 | 1st January 2005 08:03 PM |