I've been programming the Super Nintendo for more than a year but I never touched the SPC700 side. I recently downloaded byuu's spcas and I tried to compile a little square wave demo to an .spc file, but I'm not quite sure if spcas compatable with .spc files or does it work only on .smc files?
I want to make sure my spc700 code works on the spc700, before I use it to test my spc loading code. That way I would know which one is working and which one isn't.
I want to make sure my spc700 code works on the spc700, before I use it to test my spc loading code. That way I would know which one is working and which one isn't.
Code:
mov a,#$00
mov $f2,a
mov x,#$ff
mov $f3,x
mov a,#$01
mov $f2,a
mov $f3,x
mov a,#$02
mov $f2,a
mov a,#$00
mov $f3,a
mov a,#$03
mov $f2,a
mov a,#$01
mov $f3,a
mov a,#$04
mov $f2,a
mov a,#$00
mov $f3,a
mov a,#$07
mov $f2,a
mov a,#$1f
mov $f3,a
mov a,#$0c
mov $f2,a
mov a,#$7f
mov $f3,a
mov a,#$1c
mov $f2,a
mov a,#$7f
mov $f3,a
mov a,#$5d
mov $f2,a
mov a,#$02
mov $f3,a
org $0200
sample_directory:
dw $0400
org $0400
square_wave:
db $b3 $ff $ff $ff $ff $00 $00 $00 $00
mov $f2,a
mov x,#$ff
mov $f3,x
mov a,#$01
mov $f2,a
mov $f3,x
mov a,#$02
mov $f2,a
mov a,#$00
mov $f3,a
mov a,#$03
mov $f2,a
mov a,#$01
mov $f3,a
mov a,#$04
mov $f2,a
mov a,#$00
mov $f3,a
mov a,#$07
mov $f2,a
mov a,#$1f
mov $f3,a
mov a,#$0c
mov $f2,a
mov a,#$7f
mov $f3,a
mov a,#$1c
mov $f2,a
mov a,#$7f
mov $f3,a
mov a,#$5d
mov $f2,a
mov a,#$02
mov $f3,a
org $0200
sample_directory:
dw $0400
org $0400
square_wave:
db $b3 $ff $ff $ff $ff $00 $00 $00 $00