add target test

This commit is contained in:
Mariano Dominguez 2023-01-06 09:56:15 -08:00
parent c3e1ae3478
commit 2a961a870b
2 changed files with 24 additions and 1 deletions

View File

@ -39,6 +39,7 @@ EXELIST_atari = \
multi.xex \
ostype.xex \
scrcode.com \
sound.xex \
sys.xex
ifneq ($(EXELIST_$(SYS)),)
@ -74,7 +75,8 @@ scrcode.com: scrcode.s
$(CL) -t atari -C atari-asm.cfg -o scrcode.com scrcode.s
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:
@$(DEL) charmapping.xex 2>$(NULLDEV)
@$(DEL) defdev.xex 2>$(NULLDEV)
@ -85,3 +87,4 @@ clean:
@$(DEL) scrcode.o 2>$(NULLDEV)
@$(DEL) scrcode.com 2>$(NULLDEV)
@$(DEL) sys.xex 2>$(NULLDEV)
@$(DEL) sound.xex 2>$(NULLDEV)

20
targettest/atari/sound.c Normal file
View 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;
}