Subversion Repositories Shiroi

Rev

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

Rev 10 Rev 11
Line 1... Line 1...
1
/* $Id: shiroi_video_mk_i.c 10 2024-08-29 01:39:27Z nishi $ */
1
/* $Id: shiroi_video_mk_i.c 11 2024-08-29 02:49:47Z nishi $ */
2
#include "shiroi_video_mk_i.h"
2
#include "shiroi_video_mk_i.h"
3
 
3
 
4
#include "shiroi.h"
4
#include "shiroi.h"
5
 
5
 
6
#include "tms9918util.h"
6
#include "tms9918util.h"
Line 25... Line 25...
25
}
25
}
26
 
26
 
27
void shiroi_video_mk_i_reset(shiroi_t* shiroi, int slot) {
27
void shiroi_video_mk_i_reset(shiroi_t* shiroi, int slot) {
28
	vrEmuTms9918Reset(shiroi->cards[slot].video.vdp);
28
	vrEmuTms9918Reset(shiroi->cards[slot].video.vdp);
29
	shiroi->cards[slot].video.tick = 0;
29
	shiroi->cards[slot].video.tick = 0;
-
 
30
	int y, x;
-
 
31
	for(y = 0; y < shiroi->cards[slot].video.height; y++) {
-
 
32
		for(x = 0; x < shiroi->cards[slot].video.width; x++) {
-
 
33
			shiroi->cards[slot].video.fb[y * shiroi->cards[slot].video.width + x] = 0x000000ff;
-
 
34
		}
-
 
35
	}
-
 
36
	int i;
-
 
37
	int addr;
-
 
38
	addr = 0 | 0x4000;
-
 
39
	vrEmuTms9918WriteAddr(shiroi->cards[slot].video.vdp, (addr & 0xff00) >> 8);
-
 
40
	vrEmuTms9918WriteAddr(shiroi->cards[slot].video.vdp, (addr & 0xff));
-
 
41
	for(i = 0; i < 0xffff; i++) {
-
 
42
		vrEmuTms9918WriteData(shiroi->cards[slot].video.vdp, 0);
-
 
43
	}
30
}
44
}
31
 
45
 
32
void shiroi_video_mk_i(shiroi_t* shiroi) {
46
void shiroi_video_mk_i(shiroi_t* shiroi) {
33
	int i;
47
	int i;
34
 
48