Added the plasma sample to the README file.
Added a comment about loop unrolling to the plasma source. git-svn-id: svn://svn.cc65.org/cc65/trunk@1016 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -18,27 +18,33 @@ Please note:
|
|||||||
|
|
||||||
List of supplied sample programs:
|
List of supplied sample programs:
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
Name: hello
|
Name: hello
|
||||||
Description: A fancy "Hello world" type program that uses the conio
|
Description: A fancy "Hello world" type program that uses the conio
|
||||||
console I/O library for output.
|
console I/O library for output.
|
||||||
Platforms: Runs on all platforms that support conio, which means:
|
Platforms: Runs on all platforms that support conio, which means:
|
||||||
Apple ][, Atari, C64, C128, CBM510, CBM610, PET, Plus/4
|
Apple ][, Atari, C64, C128, CBM510, CBM610, PET, Plus/4
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
Name: mousedemo
|
Name: mousedemo
|
||||||
Description: Shows how to use the mouse.
|
Description: Shows how to use the mouse.
|
||||||
Platforms: All systems with mouse and conio support:
|
Platforms: All systems with mouse and conio support:
|
||||||
Atari (untested), C64, C128 and CBM510
|
Atari (untested), C64, C128 and CBM510
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
Name: nachtm
|
Name: nachtm
|
||||||
Description: Plays "Eine kleine Nachtmusik" by Wolfgang Amadeus Mozart
|
Description: Plays "Eine kleine Nachtmusik" by Wolfgang Amadeus Mozart
|
||||||
Platforms: All systems that have the Commodore SID (Sound Interface
|
Platforms: All systems that have the Commodore SID (Sound Interface
|
||||||
Device):
|
Device):
|
||||||
C64, C128, CBM510, CBM610
|
C64, C128, CBM510, CBM610
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
Name: plasma
|
||||||
|
Description: A fancy graphics demo written by groepaz/hitmen.
|
||||||
|
Platforms: The program needs a VIC but has not been ported to / tested
|
||||||
|
on the C128, so it does currently run on the CBM510 and C64.
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
Name: sieve
|
Name: sieve
|
||||||
Description: Implements the "Sieve of Eratosthenes" as a way to find all
|
Description: Implements the "Sieve of Eratosthenes" as a way to find all
|
||||||
prime numbers in a specific number interval. Often used as
|
prime numbers in a specific number interval. Often used as
|
||||||
|
|||||||
@@ -112,6 +112,10 @@ static void doplasma (void)
|
|||||||
c2A += 2;
|
c2A += 2;
|
||||||
c2B -= 3;
|
c2B -= 3;
|
||||||
for (ii = 0; ii < 25; ++ii) {
|
for (ii = 0; ii < 25; ++ii) {
|
||||||
|
/* Unrolling the following loop will give a speed increase of
|
||||||
|
* nearly 100% (~24fps), but it will also increase the code
|
||||||
|
* size a lot.
|
||||||
|
*/
|
||||||
for (i = 0; i < 40; ++i, ++scrn) {
|
for (i = 0; i < 40; ++i, ++scrn) {
|
||||||
*scrn = (xbuf[i] + ybuf[ii]);
|
*scrn = (xbuf[i] + ybuf[ii]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user