Subversion Repositories Shiroi

Rev

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

Rev 10 Rev 11
Line 1... Line 1...
1
/* $Id: shiroi_math_mk_i.c 10 2024-08-29 01:39:27Z nishi $ */
1
/* $Id: shiroi_math_mk_i.c 11 2024-08-29 02:49:47Z 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 25... Line 25...
25
		if(shiroi->cards[i].type == SHIROI_MATH_MARK_I) {
25
		if(shiroi->cards[i].type == SHIROI_MATH_MARK_I) {
26
			if(shiroi->z80_pins & Z80_RD) {
26
			if(shiroi->z80_pins & Z80_RD) {
27
				/* I/O Read */
27
				/* I/O Read */
28
				if(addr == 6) {
28
				if(addr == 6) {
29
					Z80_SET_DATA(shiroi->z80_pins, am_pop(shiroi->cards[i].math.am9511));
29
					Z80_SET_DATA(shiroi->z80_pins, am_pop(shiroi->cards[i].math.am9511));
-
 
30
				} else if(addr == 7) {
-
 
31
					Z80_SET_DATA(shiroi->z80_pins, 1);
30
				} else if(addr == 8) {
32
				} else if(addr == 8) {
31
					Z80_SET_DATA(shiroi->z80_pins, shiroi->cards[i].type);
33
					Z80_SET_DATA(shiroi->z80_pins, shiroi->cards[i].type);
32
				}
34
				}
33
			} else if(shiroi->z80_pins & Z80_WR) {
35
			} else if(shiroi->z80_pins & Z80_WR) {
34
				/* I/O Write */
36
				/* I/O Write */