Subversion Repositories Shiroi

Rev

Rev 10 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 12
Line 1... Line 1...
1
/* $Id: sound.c 10 2024-08-29 01:39:27Z nishi $ */
1
/* $Id: sound.c 12 2024-08-29 04:19:08Z nishi $ */
2
 
2
 
3
#include "sound.h"
3
#include "sound.h"
4
 
4
 
5
#include "io.h"
5
#include "io.h"
6
 
6
 
7
short psg_addr;
7
short psg_addr;
8
short psg_data;
8
short psg_data;
9
 
9
 
10
void beep(void){
10
void beep(void){
11
	_beep(1L * 1024);
11
	_beep(1L * 1024 / 2);
12
}
12
}
13
 
13
 
14
void _beep(unsigned long howlong){
14
void _beep(unsigned long howlong){
15
	if(psg_addr == -1) return;
15
	if(psg_addr == -1) return;
16
	unsigned long i;
16
	unsigned long i;