Subversion Repositories Shiroi

Rev

Rev 1 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 10
Line 1... Line 1...
1
/* $Id: shiroi_math_mk_i.c 1 2024-08-28 08:10:28Z nishi $ */
1
/* $Id: shiroi_math_mk_i.c 10 2024-08-29 01:39:27Z nishi $ */
2
#include "shiroi_math_mk_i.h"
2
#include "shiroi_math_mk_i.h"
3
 
3
 
4
#include "shiroi.h"
4
#include "shiroi.h"
5
 
5
 
6
#include "am9511.h"
6
#include "am9511.h"
Line 10... Line 10...
10
	shiroi->cards[slot].mathptr = &shiroi->cards[slot].math;
10
	shiroi->cards[slot].mathptr = &shiroi->cards[slot].math;
11
 
11
 
12
	shiroi->cards[slot].math.am9511 = am_create(0, 0);
12
	shiroi->cards[slot].math.am9511 = am_create(0, 0);
13
}
13
}
14
 
14
 
-
 
15
void shiroi_math_mk_i_reset(shiroi_t* shiroi, int slot) { am_reset(shiroi->cards[slot].math.am9511); }
-
 
16
 
15
void shiroi_math_mk_i(shiroi_t* shiroi) {
17
void shiroi_math_mk_i(shiroi_t* shiroi) {
16
	int i;
18
	int i;
17
 
19
 
18
	uint16_t io = Z80_GET_ADDR(shiroi->z80_pins);
20
	uint16_t io = Z80_GET_ADDR(shiroi->z80_pins);
19
	uint16_t addr = io & 0xff;
21
	uint16_t addr = io & 0xff;