| |
Cruzer
Registered: Dec 2001 Posts: 1048 |
Clever Routines
Post your unreleased clever routines here...
|
|
... 124 posts hidden. Click here to view all posts.... |
| |
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 |
| |
iAN CooG
Registered: May 2002 Posts: 3197 |
http://wikholm.dyndns.org/~cswiki/
already down?
edit: nevermind, now is ok |
| |
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 :)
|
| |
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 ;-) |
| |
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. |
| |
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
|
| |
Cruzer
Registered: Dec 2001 Posts: 1048 |
@Fungus: Now that's a clever routine :D |
| |
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
|
| |
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.. |
| |
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 |