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 ??


 
... 6 posts hidden. Click here to view all posts....
 
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: 677

$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 :)
2009-05-03 19:55
Oswald

Registered: Apr 2002
Posts: 5094
lda
ora
sta
2009-05-03 20:16
GT
Account closed

Registered: Sep 2008
Posts: 308
BRK
2009-05-03 23:06
fade
Account closed

Registered: Mar 2002
Posts: 290
1 ?"my dick is huge"
2 goto 1
2009-05-04 03:23
Skate

Registered: Jul 2003
Posts: 494
sei
lda #<bestirqever
sta $0314
lda #>bestirqever
sta $0315
cli
jmp *

bestirqever
inc $d020
jmp $ea81
2009-05-05 02:28
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
this will fail to do anything, please rewrite!
2009-05-05 05:53
Mace

Registered: May 2002
Posts: 1799
To get back at the original question: best in what way?
I think FLI-scroll is hardly in any category I can think of...
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
Jammer
deetsay
WVL/Xenon
Frostbyte/Artline De..
zscs
Murphy/Exceed
rambo/Therapy/ Resou..
krissz
Guests online: 108
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 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (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.058 sec.