| |
turtle Account closed
Registered: Mar 2005 Posts: 44 |
What is the best code rutine. ever ??
|
|
... 6 posts hidden. Click here to view all posts.... |
| |
Mace
Registered: May 2002 Posts: 1799 |
No, I'd go for Byte Boiler cruncher. |
| |
Zyron
Registered: Jan 2002 Posts: 2381 |
Matrix in 27 Bytes |
| |
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
------------------------------------
|
| |
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 :) |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
lda
ora
sta |
| |
GT Account closed
Registered: Sep 2008 Posts: 308 |
BRK |
| |
fade Account closed
Registered: Mar 2002 Posts: 290 |
1 ?"my dick is huge"
2 goto 1 |
| |
Skate
Registered: Jul 2003 Posts: 494 |
sei
lda #<bestirqever
sta $0314
lda #>bestirqever
sta $0315
cli
jmp *
bestirqever
inc $d020
jmp $ea81
|
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
this will fail to do anything, please rewrite! |
| |
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 |