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 > What is the best code rutine. ever ??
2009-05-03 10:45
turtle
Account closed

Registered: Mar 2005
Posts: 44
What is the best code rutine. ever ??


2009-05-03 10:49
Oswald

Registered: Apr 2002
Posts: 5127
check edge of disgrace for a whole bunch of those.
2009-05-03 11:26
yago

Registered: May 2002
Posts: 333
lda var1
clc
adc var2
sta var3
rts
2009-05-03 11:35
Moloch

Registered: Jan 2002
Posts: 2972
*plop*
2009-05-03 12:18
turtle
Account closed

Registered: Mar 2005
Posts: 44
i think fli scrolls is mega cool
2009-05-03 14:25
Soren
Account closed

Registered: Dec 2001
Posts: 547
DEC $d012 ;-)
2009-05-03 14:47
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Rob Hubbard's Monty on the Run player - nothing better than that :)
2009-05-03 17:49
Mace

Registered: May 2002
Posts: 1799
No, I'd go for Byte Boiler cruncher.
2009-05-03 18:01
Zyron

Registered: Jan 2002
Posts: 2381
Matrix in 27 Bytes
2009-05-03 18:33
GT
Account closed

Registered: Sep 2008
Posts: 308
This routine handles arpeggio, fixed-freq.values, calculated slide, vibrato or detune:

;-)

clc
adc note,x
fqfixed and #$7f
tay
lda #0
beq fqcenter+3

finetune and #$7f
beq fqcenter
clc
adc freqadd,x
tay
cmp #$60
bcc nohival
lda fqhi-$60,y
sta zero2+1
nohival lda fqhi,y
fqcenter ldy note,x
sta zero2
lda fqlo,y
bit notebit
bmi bm1
clc
adc zero2
sta $d400,x

lda fqhi,y
adc zero2+1
bcc sethi
bm1 sec
sbc zero2
setfreq sta $d400,x
lda fqhi,y
sbc zero2+1
sethi sta $d401,x
------------------------------------
2009-05-03 19:43
enthusi

Registered: May 2004
Posts: 679

$80F5 SEI
$80F6 TXS
$80F7 LDA #$10
$80F9 STA $D3D7,X
$80FC TXA
$80FD JSR $E536
$8100 TSX
$8101 DEX
$8102 BNE $80F5
$8104 kill-opcode $02

Freakin' evil shit code by Roland - he came up with it.
The compo was to write a code to create the same screen as this one (JAM on vice is not like on real thing). I think the best 2nd place was 21 byte by BigUser...
Took place in a german forum (F64) in 2005.

My versions (22 Byte):
*=$0100
!byte $ff
!byte $80,$80,$80,$80,$80,$80,$80
a asl
sta $d020,x
lda #$11
sta $d018
jsr $e536
bcs a

and (same size unfortunately):
*=$2101
!byte $7f,$7f,$7f,$7f,$7f,$7f,$7f
sta $d020
jsr $e536
stx $d021
ldy #$19
sty $d018
!byte $02

BigUsers was:

* = $0100
!by $ff,$80,$80,$80,$80,$80,$80,$80 ; 8
lda #$10 ; 2
loop sta $d3d8,y ; 3
ror ; 1
iny ; 1
bne loop ; 2
jsr $e536 ; 3
!by $02; jam ; 1 / illegal Opcode

----------------------------
damn, I loved that compo :)
 
... 6 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - 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
Mike
Røly/Mayday!
ptoing
fox/bonzai
Steveboy
Guests online: 179
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Wonderland XIV  (9.5)
9 Uncensored  (9.5)
10 Comaland 100%  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Stinsen  (9.7)
4 LMan  (9.7)
5 Linus  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.145 sec.