Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > 1541 Routines
2006-11-23 15:28
Codey

Registered: Oct 2005
Posts: 79
1541 Routines

What's the most impressive 1541 routines you've seen other than for loading? Some routines I recall are turning the led on and off in sync with the music, fading the led in and out, and bumping the head to play music from the drive (this had to contribute to many mis-aligned 1541s!)
2006-11-23 15:34
Graham
Account closed

Registered: Dec 2002
Posts: 990
Panta Rhei

Uses the disk drive for calculations of the chessboard and the x-rotator.
2006-11-23 16:16
Oswald

Registered: Apr 2002
Posts: 5017
here the filled vector tunel, and other filled vectors uses the drive to do the 3d math.

Digital World

the filledvector part here again uses for 3d math the drive

Altered States 50%
2006-11-23 17:53
JackAsser

Registered: Jun 2002
Posts: 1987
The Wild Bunch

Uses the disk drive to calculate the y-stretching in the double zoom scrollers. Same technique as in the chess zoomer in Panta Rhei mentioned above.
2006-11-23 18:56
Danzig

Registered: Jun 2002
Posts: 428
1541 is just a co-pro that can read disk :D
2022-05-08 12:24
Krill

Registered: Apr 2002
Posts: 2825
Apart from the obvious Freespin

not mentioned so far:

The Masque
Realtime Intro

Let's make this thread about collecting demos with drive code in general, as there are so few, regardless of how impressive or even sensible the drive routines are.

So there's also +H2K (final part with credits crawl),
and the note of Deus Ex Machina (running a SID player in the drive, sending register dumps to C-64).
2022-05-08 15:09
Mojzesh

Registered: Jul 2006
Posts: 12
My two cents:

There is also my effect Textured Vectors in ES1RA:
ES1RA

And, my “Spiral bobs” and End Part “Twisted Vectors” in Biba 2:
Biba 2
2022-05-09 01:06
Quiss

Registered: Nov 2016
Posts: 37
Protogeo 100% last part, by Norvax.

Uses the drive to compute the (2D) coordinates of the eight SMGF cube corners (using a 16-bit truncated sine table with 65 entries), with perspective correction.

The division routine is a little peculiar. And the gap filling and line slope math really should have been done in the drive as well. But other than that, this is one of the most impressive 3D parts of all times.
2022-05-09 01:20
chatGPZ

Registered: Dec 2001
Posts: 11100
But the music! <3
2022-05-10 14:22
Mr.Ice

Registered: Nov 2007
Posts: 13
Any demes that need more than one drive to calculate stuff?
2022-05-10 20:24
Copyfault

Registered: Dec 2001
Posts: 466
Quoting Mr.Ice
Any demes that need more than one drive to calculate stuff?
I think there was a fractal generator released by one of the german disk mags (Input64 or Magic Disk?) that could be configured to use more than one drive, but chances are high that my mind plays tricks on me and I just dreamt this...

Either way, it's not a demo!
2022-05-10 20:43
Krill

Registered: Apr 2002
Posts: 2825
Quoting Copyfault
I think there was a fractal generator
[...]
Either way, it's not a demo!
Pray tell, why is it not a demo? =)
2022-05-10 22:44
Copyfault

Registered: Dec 2001
Posts: 466
Quoting Krill
Quoting Copyfault
I think there was a fractal generator
[...]
Either way, it's not a demo!
Pray tell, why is it not a demo? =)
I keep my hands off the territory of definitions on csdb. Better leave it to the mods ;)
2022-05-10 23:15
Krill

Registered: Apr 2002
Posts: 2825
To quote a demo scener i keep in high regard:
"julia fractals are never nice (slow or fast)... they're ugly iterating blobs of nothingness, same goes for mandelbrots... It's debugging stuff for mathematicians, not eyecandy"

... and they serve no purpose, apart from showing "oh yeah, i can do that!" =)

So, if there's anything qualifying for "demo", it's fractal generators. =D
2022-05-11 12:39
Martin Piper

Registered: Nov 2007
Posts: 631
Quote: To quote a demo scener i keep in high regard:
"julia fractals are never nice (slow or fast)... they're ugly iterating blobs of nothingness, same goes for mandelbrots... It's debugging stuff for mathematicians, not eyecandy"

... and they serve no purpose, apart from showing "oh yeah, i can do that!" =)

So, if there's anything qualifying for "demo", it's fractal generators. =D


Umm yeah, a fractal routine, especially one that is novel and uses one or more 1541s, would definitely be a "demo".
2022-05-11 16:23
Mirage

Registered: Jan 2003
Posts: 113
Quote: To quote a demo scener i keep in high regard:
"julia fractals are never nice (slow or fast)... they're ugly iterating blobs of nothingness, same goes for mandelbrots... It's debugging stuff for mathematicians, not eyecandy"

... and they serve no purpose, apart from showing "oh yeah, i can do that!" =)

So, if there's anything qualifying for "demo", it's fractal generators. =D


They still are! :)
2022-08-01 10:39
Krill

Registered: Apr 2002
Posts: 2825
Amanita (80%) - vector objects part on 2nd side.
2022-08-01 22:52
Copyfault

Registered: Dec 2001
Posts: 466
Quoting Krill
To quote a demo scener i keep in high regard:
"julia fractals are never nice (slow or fast)... they're ugly iterating blobs of nothingness, same goes for mandelbrots... It's debugging stuff for mathematicians, not eyecandy"

... and they serve no purpose, apart from showing "oh yeah, i can do that!" =)

So, if there's anything qualifying for "demo", it's fractal generators. =D
Meanwhile I found this link: https://www.c64-wiki.de/wiki/Mandelbrot-Construction-Set (sorry for German language used in the linked page)

The tool(!) is capable of handling only one drive, not several drives like I had in mind. But still, the program doesn't feel like a demo to me, it's rather a utility.
2022-08-02 08:02
deetsay

Registered: Aug 2005
Posts: 36
Do loaders generally (...or any loader) have support or room left for 1541 code, or do you always trash the loader and then run the "loader installer" again afterwards?
2022-08-02 08:41
Krill

Registered: Apr 2002
Posts: 2825
Quoting deetsay
Do loaders generally (...or any loader) have support or room left for 1541 code, or do you always trash the loader and then run the "loader installer" again afterwards?
It's the latter, but in a more refined form these days. :)
.struct drivecode
            entry  .word; drive
            to     .word; drive
            length .word; bytes
            from   .word; host
.endstruct

.struct swapparams
            buffer      .word; $0800 bytes for swapped loader drive code

            drivecode41 .tag drivecode
    .if ONLY_1541_AND_COMPATIBLE = 0
            drivecode71 .tag drivecode
            drivecode81 .tag drivecode
    .endif; ONLY_1541_AND_COMPATIBLE = 0
.endstruct

.import swapdrvcod
.import restoreldr

; Execute custom code in the drive, buffer loader code on host side before
; in:  x/y - x: lo, y: hi of swapparams structure
; out: c   - set on error
;      a   - status
.macro SWAP_DRIVECODE params
            ldx #<(params)
            ldy #>(params)
            jsr swapdrvcod
.endmacro

; Restore drive-side loader code
; in:  nothing
; out: undefined
.macro RESTORE_LOADER
            jsr restoreldr
.endmacro
2023-06-07 10:17
Krill

Registered: Apr 2002
Posts: 2825
Boo! - drive-side co-processing.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Flex/Artline Designs
Guests online: 101
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.9)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.073 sec.