Subversion Repositories Shiroi

Rev

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

Rev 8 Rev 10
Line 1... Line 1...
1
/* $Id: shiroi_video_mk_ii.c 8 2024-08-28 16:29:15Z nishi $ */
1
/* $Id: shiroi_video_mk_ii.c 10 2024-08-29 01:39:27Z nishi $ */
2
#include "shiroi_video_mk_ii.h"
2
#include "shiroi_video_mk_ii.h"
3
 
3
 
4
#include "shiroi.h"
4
#include "shiroi.h"
5
 
5
 
6
#include <stdlib.h>
6
#include <stdlib.h>
Line 34... Line 34...
34
			shiroi->cards[slot].video.fb[y * shiroi->cards[slot].video.width + x] = 0;
34
			shiroi->cards[slot].video.fb[y * shiroi->cards[slot].video.width + x] = 0;
35
		}
35
		}
36
	}
36
	}
37
}
37
}
38
 
38
 
-
 
39
void shiroi_video_mk_ii_reset(shiroi_t* shiroi, int slot) {
-
 
40
	mc6847_reset(&shiroi->cards[slot].video.mc6847);
-
 
41
	shiroi->cards[slot].video.tick = 0;
-
 
42
}
-
 
43
 
39
void shiroi_video_mk_ii(shiroi_t* shiroi) {
44
void shiroi_video_mk_ii(shiroi_t* shiroi) {
40
	int i;
45
	int i;
41
 
46
 
42
	uint16_t io = Z80_GET_ADDR(shiroi->z80_pins);
47
	uint16_t io = Z80_GET_ADDR(shiroi->z80_pins);
43
	uint16_t addr = io & 0xff;
48
	uint16_t addr = io & 0xff;