actionFrameSkip[i]->fm7_binds->setValue1(i);
actionGroup_FrameSkip->addAction(actionFrameSkip[i]);
menuFrameSkip->addAction(actionFrameSkip[i]);
- if(i == skip) actionFrameSkip[i]->setChecked(true);
+ if((uint32_t)i == skip) actionFrameSkip[i]->setChecked(true);
connect(actionFrameSkip[i], SIGNAL(triggered()), actionFrameSkip[i], SLOT(do_set_frameskip()));
}
menuMachine->addAction(menuFrameSkip->menuAction());
void DISPLAY::reset()
{
int i;
-
memset(io_w_latch, 0xff, sizeof(io_w_latch));
halt_flag = false;
vram_accessflag = true;
if(display_mode == DISPLAY_MODE_8_400L) {
color = vram_bank & 0x03;
if(color > 2) color = 0;
- } else {
+ } else
+# endif
+ {
color = (addr >> 14) & 0x03;
}
-# endif
#if !defined(_FM8)
if((multimode_accessmask & (1 << color)) != 0) return;
#endif
if(display_mode == DISPLAY_MODE_8_400L) {
color = vram_bank & 0x03;
if(color > 2) color = 0;
- } else {
+ } else
+# endif
+ {
color = (addr >> 14) & 0x03;
}
-# endif
# if !defined(_FM8)
if((multimode_accessmask & (1 << color)) != 0) return 0xff;
# endif
void JOYSTICK::reset()
{
- int i;
joydata[0] = joydata[1] = 0xff;
lpt_type = config.printer_device_type;
#if !defined(_FM8)
void JOYSTICK::update_config(void)
{
- int i;
#if !defined(_FM8)
- if(mouse_type == config.device_type) return;
+ if(mouse_type == (uint32_t)config.device_type) return;
mouse_type = config.device_type;
switch(mouse_type & 0x03){
case 1:
bool JOYSTICK::load_state(FILEIO *state_fio)
{
uint32_t version = state_fio->FgetUint32_BE();
- uint32_t devid = state_fio->FgetInt32_BE();
+ int32_t devid = state_fio->FgetInt32_BE();
bool stat = false;
int ch;
this->out_debug_log("Load State: JOYSTICK: id=%d ver=%d\n", devid, version);
void DISPLAY::GETVRAM_8_200L(int yoff, scrntype_t *p, uint32_t mask,
bool window_inv = false)
{
- register uint8_t b, r, g;
- register uint32_t dot;
+ uint8_t b, r, g;
uint32_t yoff_d;
#if defined(_FM77AV40EX) || defined(_FM77AV40SX)
int dpage = vram_display_block;
p[i] = dpalette_pixel[tmp_d[i]];
}
#else
+ uint32_t dot;
dot = ((g & 0x80) >> 5) | ((r & 0x80) >> 6) | ((b & 0x80) >> 7);
p[0] = dpalette_pixel[dot];
dot = ((g & 0x40) >> 4) | ((r & 0x40) >> 5) | ((b & 0x40) >> 6);
void DISPLAY::GETVRAM_8_400L(int yoff, scrntype_t *p, uint32_t mask,
bool window_inv = false)
{
- register uint8_t b, r, g;
- register uint32_t dot;
+ uint8_t b, r, g;
+ uint32_t dot;
uint32_t yoff_d;
# if defined(_FM77AV40EX) || defined(_FM77AV40SX)
int dpage = vram_display_block;
void DISPLAY::GETVRAM_256k(int yoff, scrntype_t *p, uint32_t mask)
{
- register uint32_t b3, r3, g3;
- register uint32_t b4, r4, g4;
- register uint32_t btmp, rtmp, gtmp;
+ uint32_t b3, r3, g3;
+ uint32_t b4, r4, g4;
+ uint32_t btmp, rtmp, gtmp;
- register scrntype_t b, r, g;
+ scrntype_t b, r, g;
scrntype_t pixel;
uint32_t _bit;
int _shift;
int y;
int x;
scrntype_t *p, *pp;
- register int yoff;
- register uint32_t rgbmask;
+ int yoff;
+ uint32_t rgbmask;
uint32_t yoff_d1, yoff_d2;
uint16_t wx_begin, wx_end, wy_low, wy_high;
frame_skip_count++;
#if defined(_FM77AV_VARIANTS)
{
- int factor = (config.dipswitch & FM7_DIPSW_FRAMESKIP) >> 28;
+ uint32_t factor = (config.dipswitch & FM7_DIPSW_FRAMESKIP) >> 28;
if(frame_skip_count < factor) return;
frame_skip_count = 0;
}
yoff_d1 = 0;
#else
{
- int factor = (config.dipswitch & FM7_DIPSW_FRAMESKIP) >> 28;
+ uint32_t factor = (config.dipswitch & FM7_DIPSW_FRAMESKIP) >> 28;
if((frame_skip_count < factor) || !(vram_wrote_shadow)) return;
frame_skip_count = 0;
}