mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 22:30:12 +00:00
add target test
This commit is contained in:
parent
c3e1ae3478
commit
2a961a870b
@ -39,6 +39,7 @@ EXELIST_atari = \
|
|||||||
multi.xex \
|
multi.xex \
|
||||||
ostype.xex \
|
ostype.xex \
|
||||||
scrcode.com \
|
scrcode.com \
|
||||||
|
sound.xex \
|
||||||
sys.xex
|
sys.xex
|
||||||
|
|
||||||
ifneq ($(EXELIST_$(SYS)),)
|
ifneq ($(EXELIST_$(SYS)),)
|
||||||
@ -74,7 +75,8 @@ scrcode.com: scrcode.s
|
|||||||
$(CL) -t atari -C atari-asm.cfg -o scrcode.com scrcode.s
|
$(CL) -t atari -C atari-asm.cfg -o scrcode.com scrcode.s
|
||||||
sys.xex: sys.c
|
sys.xex: sys.c
|
||||||
$(CL) -t atari -o sys.xex sys.c
|
$(CL) -t atari -o sys.xex sys.c
|
||||||
|
sound.xex: sound.c
|
||||||
|
$(CL) -t atari -o sound.xex sound.c
|
||||||
clean:
|
clean:
|
||||||
@$(DEL) charmapping.xex 2>$(NULLDEV)
|
@$(DEL) charmapping.xex 2>$(NULLDEV)
|
||||||
@$(DEL) defdev.xex 2>$(NULLDEV)
|
@$(DEL) defdev.xex 2>$(NULLDEV)
|
||||||
@ -85,3 +87,4 @@ clean:
|
|||||||
@$(DEL) scrcode.o 2>$(NULLDEV)
|
@$(DEL) scrcode.o 2>$(NULLDEV)
|
||||||
@$(DEL) scrcode.com 2>$(NULLDEV)
|
@$(DEL) scrcode.com 2>$(NULLDEV)
|
||||||
@$(DEL) sys.xex 2>$(NULLDEV)
|
@$(DEL) sys.xex 2>$(NULLDEV)
|
||||||
|
@$(DEL) sound.xex 2>$(NULLDEV)
|
||||||
|
20
targettest/atari/sound.c
Normal file
20
targettest/atari/sound.c
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
** testprogram printing the default device
|
||||||
|
**
|
||||||
|
** January 6 2023 Mariano Domínguez
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <conio.h>
|
||||||
|
#include <atari.h>
|
||||||
|
#include <cc65.h>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
int i=0;
|
||||||
|
printf("playing sound \n");
|
||||||
|
sound(1,121,10,15);
|
||||||
|
for(i=0;i<90;i++);
|
||||||
|
sound(1,0,0,0);
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user