Subversion Repositories Shiroi

Rev

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

Rev 1 Rev 10
Line 1... Line 1...
1
/* $Id: shiroi_sound_mk_i.c 1 2024-08-28 08:10:28Z nishi $ */
1
/* $Id: shiroi_sound_mk_i.c 10 2024-08-29 01:39:27Z nishi $ */
2
#include "shiroi_sound_mk_i.h"
2
#include "shiroi_sound_mk_i.h"
3
 
3
 
4
#include "shiroi.h"
4
#include "shiroi.h"
5
 
5
 
6
extern float audio[];
6
extern float audio[];
Line 20... Line 20...
20
	desc.type = AY38910_TYPE_8910;
20
	desc.type = AY38910_TYPE_8910;
21
 
21
 
22
	ay38910_init(&shiroi->cards[slot].sound.psg, &desc);
22
	ay38910_init(&shiroi->cards[slot].sound.psg, &desc);
23
}
23
}
24
 
24
 
-
 
25
void shiroi_sound_mk_i_reset(shiroi_t* shiroi, int slot) { ay38910_reset(&shiroi->cards[slot].sound.psg); }
-
 
26
 
25
void shiroi_sound_mk_i(shiroi_t* shiroi) {
27
void shiroi_sound_mk_i(shiroi_t* shiroi) {
26
	int i;
28
	int i;
27
 
29
 
28
	uint16_t io = Z80_GET_ADDR(shiroi->z80_pins);
30
	uint16_t io = Z80_GET_ADDR(shiroi->z80_pins);
29
	uint16_t addr = io & 0xff;
31
	uint16_t addr = io & 0xff;