Subversion Repositories Shiroi

Rev

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

Rev 6 Rev 7
Line 1... Line 1...
1
/* $Id: shiroi_text_mk_i.c 6 2024-08-28 10:29:32Z nishi $ */
1
/* $Id: shiroi_text_mk_i.c 7 2024-08-28 14:02:52Z nishi $ */
2
#include "shiroi_text_mk_i.h"
2
#include "shiroi_text_mk_i.h"
3
 
3
 
4
#include "shiroi.h"
4
#include "shiroi.h"
5
 
5
 
6
#include <stdlib.h>
6
#include <stdlib.h>
Line 24... Line 24...
24
		if(shiroi->cards[i].type == SHIROI_TEXT_MARK_I) {
24
		if(shiroi->cards[i].type == SHIROI_TEXT_MARK_I) {
25
			if(shiroi->z80_pins & Z80_RD) {
25
			if(shiroi->z80_pins & Z80_RD) {
26
				/* I/O Read */
26
				/* I/O Read */
27
				if(addr == 9) {
27
				if(addr == 9) {
28
					Z80_SET_DATA(shiroi->z80_pins, shiroi->cards[i].text.key);
28
					Z80_SET_DATA(shiroi->z80_pins, shiroi->cards[i].text.key);
-
 
29
					shiroi->cards[i].text.key = 0;
29
				} else if(addr == 11) {
30
				} else if(addr == 11) {
30
					Z80_SET_DATA(shiroi->z80_pins, shiroi->cards[i].type);
31
					Z80_SET_DATA(shiroi->z80_pins, shiroi->cards[i].type);
31
				}
32
				}
32
			} else if(shiroi->z80_pins & Z80_WR) {
33
			} else if(shiroi->z80_pins & Z80_WR) {
33
				/* I/O Write */
34
				/* I/O Write */