Subversion Repositories Shiroi

Rev

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

Rev 12 Rev 21
Line 1... Line 1...
1
/* $Id: shiroi_debug.c 12 2024-08-29 04:19:08Z nishi $ */
1
/* $Id: shiroi_debug.c 21 2024-08-31 09:25:21Z nishi $ */
2
#include "shiroi_debug.h"
2
#include "shiroi_debug.h"
3
 
3
 
4
#include "shiroi.h"
4
#include "shiroi.h"
5
 
5
 
6
#include <stdlib.h>
6
#include <stdlib.h>
Line 33... Line 33...
33
					Z80_SET_DATA(shiroi->z80_pins, shiroi->cards[i].type);
33
					Z80_SET_DATA(shiroi->z80_pins, shiroi->cards[i].type);
34
				}
34
				}
35
			} else if(shiroi->z80_pins & Z80_WR) {
35
			} else if(shiroi->z80_pins & Z80_WR) {
36
				/* I/O Write */
36
				/* I/O Write */
37
				if(addr == 12) {
37
				if(addr == 12) {
-
 
38
					printf("!\n");
38
					shiroi->cards[i].debug.latch_addr = data;
39
					shiroi->cards[i].debug.latch_addr = data;
39
				} else if(addr == 13) {
40
				} else if(addr == 13) {
40
					shiroi->cards[i].debug.latch[shiroi->cards[i].debug.latch_addr] = data;
41
					shiroi->cards[i].debug.latch[shiroi->cards[i].debug.latch_addr] = data;
41
				}
42
				}
42
			}
43
			}