Code: Select all
ldx #$00
-;
cpx $f6
bne -
lda $f4
sta $c000,x
stx $f6
inx
cpx #$99
bne -
ldx #$00
bra -
Code: Select all
spc700_streaming:
php
sep #$30
ldx #$00
-;
lda wave,x
sta $2140
stx $2142
-;
cpx $2142
bne -
inx
cpx #$99
bne --
plp
rts
Moderator: Moderators
Code: Select all
ldx #$00
-;
cpx $f6
bne -
lda $f4
sta $c000,x
stx $f6
inx
cpx #$99
bne -
ldx #$00
bra -
Code: Select all
spc700_streaming:
php
sep #$30
ldx #$00
-;
lda wave,x
sta $2140
stx $2142
-;
cpx $2142
bne -
inx
cpx #$99
bne --
plp
rts
Code: Select all
arch snes.smp
str $f0=#$30 //reset_all_ports
str $f2=#$0f
str $f3=#$7f //FIR filter is all pass
str $f2=#$0c
str $f3=#$7f //left volume 100%
str $f2=#$1c
str $f3=#$7f //right volume 100%
str $f2=#$2c
str $f3=#$00 //echo volume 0%
str $f2=#$3c
str $f3=#$00 //echo volume 0%
str $f2=#$6c
str $f3=#$00
str $f2=#$0d
str $f3=#$00 //feedback 0%
str $f2=#$4d
str $f3=#$00 //no channel with echo
str $f2=#$5d
str $f3=#$80 //directory
str $f2=#$6d
str $f3=#$ff //echo buffer
str $f2=#$7d
str $f3=#$00 //shortest delay possible
str $f2=#$00
str $f3=#$7f //channel 0 left volume
str $f2=#$01
str $f3=#$7f //channel 0 right volume
str $f2=#$02
str $f3=#$00
str $f2=#$03
str $f3=#$10 //original pitch
str $f2=#$04
str $f3=#$00
str $f2=#$07
str $f3=#$7f //gain up
str $f2=#$4c
str $f3=#$01 //key on
ldx #$00
-;
cpx $f6
bne -
lda $f4
sta $c000,x
stx $f6
inx
cpx #$99
bne -
ldx #$00
bra -
seek($608000)
directory:
dw $c000
dw $c000
seek($60c090)
db $03Code: Select all
str $f0=#$30that's because it should've been $f1 for Port Control -- instead $f0 is a test register u must have activated some funky test shitpsycopathicteen wrote:Getting rid of this code solves the problem for some reason. Now I can actually get this Bad Apple demo finished.Code: Select all
str $f0=#$30