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: 3138
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: 1633
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: 629
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: 675
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: 1633
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: 675
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
St0rmfr0nt/Quantum
cba
CA$H/TRiAD
Slaxx/Q/HF/MYD!
t0m3000/HF^BOOM!^IBX
Guests online: 85
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 No Bounds  (9.6)
7 Aliens in Wonderland  (9.6)
8 Comaland 100%  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 It's More Fun to Com..  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (9.5)
8 Dawnfall V1.1  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

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