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-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
2007-05-03 10:29
Cruzer

Registered: Dec 2001
Posts: 1048
@Fungus: Now that's a clever routine :D
2007-05-03 12:15
enthusi

Registered: May 2004
Posts: 677
dunno who used carry for it first but I like it.
A get_byte from tapeloader:

lda #$01
sta $bd

loop:
jsr getbit
rol $bd
bcc loop
lda $bd
rts
2007-05-03 13:15
Frantic

Registered: Mar 2003
Posts: 1648
Enthusi.. small and quite simple snippet, but I actually added it to the wiki, if you don't mind. I guess someone out there will feel inspired by it some day. ;)

http://wikholm.dyndns.org/~cswiki/doku.php?id=get_byte_from_tap..
2007-05-03 13:19
enthusi

Registered: May 2004
Posts: 677
yeah, I intended to enhance its tape-area anyway :)
Once I find the time
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
apprentix
Guests online: 98
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
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 Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

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