Subversion Repositories Shiroi

Rev

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

Rev 12 Rev 19
Line 1... Line 1...
1
/* $Id: shiroi.c 12 2024-08-29 04:19:08Z nishi $ */
1
/* $Id: shiroi.c 19 2024-08-29 07:16:04Z nishi $ */
2
 
2
 
3
#include "shiroi.h"
3
#include "shiroi.h"
4
 
4
 
5
#include "card/shiroi_video_mk_i.h"
5
#include "card/shiroi_video_mk_i.h"
6
#include "card/shiroi_video_mk_ii.h"
6
#include "card/shiroi_video_mk_ii.h"
Line 126... Line 126...
126
 
126
 
127
void shiroi_loop(shiroi_t* shiroi) {
127
void shiroi_loop(shiroi_t* shiroi) {
128
	int x = 0;
128
	int x = 0;
129
	int y = 0;
129
	int y = 0;
130
#ifdef ACCURATE_CLOCK
130
#ifdef ACCURATE_CLOCK
131
	double hz = 1000000000 / (20 * 1024 * 1024);
131
	double hz = 1000000000.0 / (20 * 1024 * 1024);
132
	struct timespec deadline;
132
	struct timespec deadline;
133
#endif
133
#endif
134
	while(!shiroi->stop || shiroi->reset) {
134
	while(!shiroi->stop || shiroi->reset) {
135
		if(shiroi->reset) {
135
		if(shiroi->reset) {
136
			z80_reset(&shiroi->z80);
136
			z80_reset(&shiroi->z80);