Subversion Repositories Shiroi

Rev

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

Rev 7 Rev 10
Line 1... Line 1...
1
/* $Id: shiroi_video_mk_i.c 7 2024-08-28 14:02:52Z nishi $ */
1
/* $Id: shiroi_video_mk_i.c 10 2024-08-29 01:39:27Z 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 22... Line 22...
22
			shiroi->cards[slot].video.fb[y * TMS9918_PIXELS_X + x] = 0;
22
			shiroi->cards[slot].video.fb[y * TMS9918_PIXELS_X + x] = 0;
23
		}
23
		}
24
	}
24
	}
25
}
25
}
26
 
26
 
-
 
27
void shiroi_video_mk_i_reset(shiroi_t* shiroi, int slot) {
-
 
28
	vrEmuTms9918Reset(shiroi->cards[slot].video.vdp);
-
 
29
	shiroi->cards[slot].video.tick = 0;
-
 
30
}
-
 
31
 
27
void shiroi_video_mk_i(shiroi_t* shiroi) {
32
void shiroi_video_mk_i(shiroi_t* shiroi) {
28
	int i;
33
	int i;
29
 
34
 
30
	uint16_t io = Z80_GET_ADDR(shiroi->z80_pins);
35
	uint16_t io = Z80_GET_ADDR(shiroi->z80_pins);
31
	uint16_t addr = io & 0xff;
36
	uint16_t addr = io & 0xff;