Subversion Repositories Shiroi

Rev

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

Rev 21 Rev 22
Line 1... Line 1...
1
/* $Id: shiroi_debug.c 21 2024-08-31 09:25:21Z nishi $ */
1
/* $Id: shiroi_debug.c 22 2024-08-31 10:44:32Z 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");
-
 
39
					shiroi->cards[i].debug.latch_addr = data;
38
					shiroi->cards[i].debug.latch_addr = data;
40
				} else if(addr == 13) {
39
				} else if(addr == 13) {
41
					shiroi->cards[i].debug.latch[shiroi->cards[i].debug.latch_addr] = data;
40
					shiroi->cards[i].debug.latch[shiroi->cards[i].debug.latch_addr] = data;
42
				}
41
				}
43
			}
42
			}