| |
AKA :
Audiovisual presentation of bubble sort algorithm in 255 bytes
Released At :
Inércia Demoparty 2021
Achievements :
WiLD Demo Competition at Inércia Demoparty 2021 : #7
Credits :
Download :
Look for downloads on external sites:
Pokefinder.org
Production Info Submitted by Frostbyte on 31 October 2021
Original Bubble Sort source (40 bytes until done):
https://codebase64.org/doku.php?id=base:bubble_sort_8-bit_eleme..
Modified version is 33 bytes without the extra line draws and sid writes.
Also utilises a slimlined BASIC start from sidecoding.org wiki:
http://www.sizecoding.org/wiki/6502_based_CPUs#Program_file_ove..
And also while reading LFT's blog post about A Mind Is Born, I learned that jsr $e544 also sets screenram with the colour in $286. :) Otherwise the code is what my n00b 6502 asm programmer brain could come up with. Please be gentle, I've just popped my cherry.
Footprint:
2 - Load address
12 - Basic start and setting A, X = 0
1 - Stopping interrupts
14 - Clearing bitmap
38 - Initialising MC mode, bitmap location, colours and SID
42 - Generating index tables for 1st bytes in each pixel row of the bitmap
11 - Generate a list of 200 random numbers
65 - Bubble sort the list, with SID updates and drawline routine calls
70 - Line drawing routine
= 255 bytes total |
|
|
|
| Search CSDb |
| Navigate | |
|
| Detailed Info | |
|
| Fun Stuff | |
· Goofs (1)
· Hidden Parts · Trivia
|
|
| Forum | |
|
| Support CSDb | |
|
| |
|