Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Clever Routines
2007-04-20 07:35
Cruzer

Registered: Dec 2001
Posts: 1048
Clever Routines

Post your unreleased clever routines here...
 
... 124 posts hidden. Click here to view all posts....
 
2007-04-27 22:34
DCMP
Account closed

Registered: May 2003
Posts: 59
Thanks guys, for this initiative!
This can prove to be quite motivational.
2007-04-28 07:30
Copyfault

Registered: Dec 2001
Posts: 478
Quote: platine, this was already done by ninja, and maybe by others too, you can see it for example here: Real the every 2nd line fli screens (tunel and julia) uses this trick to leave cycles free :)

Oswald, we shouldn't discourage Platine to tell such ideas, should we ;)? You're right, it's been done'n'used before, but nevertheless the idea is really great! Sooner or later it _will_ be added to the codebase-wiki!

Thank you guys, esp. Cruzer, Frantic and Icon, for such a brilliant creation; the codebase-wiki for c64 routines is pure cyberheaven for me;p

CF
2007-04-28 07:59
Trash

Registered: Jan 2002
Posts: 122
@Platine: Now I understand what you were aiming at, and no my routine dont do just that..
2007-04-28 08:24
Frantic

Registered: Mar 2003
Posts: 1648
Thanks guys. It was inspiring to set this up because of all the positive feedback.

Now go add a lot of more stuff in there! I know you have zillions of sourcecodes lying around on your harddrives!
I think we should strike our hammers while the iron is hot, so to speak. ;)

/FTC
2007-04-28 12:45
Raf

Registered: Nov 2003
Posts: 343
yeah , looks like proper time to start adding stuff as first steps were done and wiki's construction/rules seem to be quite stable and useful now :)

www.vulture.c64.org
2007-04-28 14:49
iAN CooG

Registered: May 2002
Posts: 3197
http://wikholm.dyndns.org/~cswiki/
already down?
edit: nevermind, now is ok
2007-04-29 01:44
Luke

Registered: Dec 2004
Posts: 19
I got other idea, but don't know is it works at all c-64 version.

;crazy cycler

*=$0810

sei
ldx #$07
lda tbdet,x
sta $0400,x
dex
bpl *-7
jsr wait

wi1 lda #$34
cmp $d012
bne *-3
nop
nop
nop
nop
nop
lda $d800
lsr
lsr
lsr
lsr
tax
lda tbdec,x
lsr
sta wi5+1
bcc *+2
clc
wi5 bcc *
nop
nop
nop
nop
...........

...........



wait bit $d011
bpl *-3
bit $d011
bmi *-3
rts

tbdec .byte $00,$00,$00,$01,$00,$00
.byte $02,$03,$04,$05,$00,$00
.byte $06

tbdet .byte $01,$09,$0c,$00,$4d,$cd
.byte $5f,$5c

This is a vic-cpu synchronizer using $d800 old nybble.
Make sure $17 is in $d018 + %xxxxxx11 in $dd00 , $1b in $d011. I heard from somebody it's not working on all c-64 versions. I think it's clever routine :)
2007-05-01 11:33
Mace

Registered: May 2002
Posts: 1799
The wiki looks nice.
I'll dig up some basic routines I wrote in the past... but don't hold your breath ;-)
2007-05-02 21:02
Frantic

Registered: Mar 2003
Posts: 1648
By the way.. I think, apart from effect routines and so on it could be useful for newcomers to C64 coding to have articles about what stuff need to be initialized in various ways in order to get going. You know.. setting the bits in $01, initializing the VIC, setting up interrupts of various kinds (not necessarily stable ones) and so on. Such an article would get a lot of people going in no time I think. If anyone feel obliged to start such an article, please feel free. I might start it myself some day soon if noone else does it.

However, I think that kind of article would be a perfect one for collaborative editing, rather than the single author articles that have appeared on the wiki so far.

In general I think this wiki should hold both articles for the expert as well as the complete beginner.
2007-05-03 07:23
Fungus

Registered: Sep 2002
Posts: 686
lda $d00d
and $babe
adc $b00b
lda $f00d
cmp $2bad
bne $2bed
lda $b007
sta $a555
rti

$2bed

php
plp
php
plp
php
plp
rol
ror
rol
ror
brk
php
plp
php
plp
sec
rts
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 - Next
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
Peacemaker/CENSOR/Hi..
t0m3000/hf^boom!^ibx
Perplex/Offence
CreaMD/React
Knut Clausen/SHAPE/F..
Sillicon/Unreal
The Human Co../Maste..
Dr.Science/Atlantis
Malmix/Fatzone
ΛΛdZ
Scrap/Genesis Project
kbs/Pht/Lxt
MCM/ONSLAUGHT
Conjuror
Guests online: 128
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

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