Mercurial > repos > blastem
comparison genesis.c @ 2194:01ff005b08f6
Very rudimentary support for Game Gear VDP emulation
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 21 Aug 2022 22:29:47 -0700 |
parents | 408fb8a7e990 |
children | eaaf28af3c94 |
comparison
equal
deleted
inserted
replaced
2193:d00fb9c6a6a2 | 2194:01ff005b08f6 |
---|---|
1871 } else { | 1871 } else { |
1872 gen->vdp_unlocked = 1; | 1872 gen->vdp_unlocked = 1; |
1873 } | 1873 } |
1874 | 1874 |
1875 uint8_t max_vsram = !strcmp(tern_find_ptr_default(model, "vsram", "40"), "64"); | 1875 uint8_t max_vsram = !strcmp(tern_find_ptr_default(model, "vsram", "40"), "64"); |
1876 gen->vdp = init_vdp_context(gen->version_reg & 0x40, max_vsram); | 1876 gen->vdp = init_vdp_context(gen->version_reg & 0x40, max_vsram, VDP_GENESIS); |
1877 gen->vdp->system = &gen->header; | 1877 gen->vdp->system = &gen->header; |
1878 gen->frame_end = vdp_cycles_to_frame_end(gen->vdp); | 1878 gen->frame_end = vdp_cycles_to_frame_end(gen->vdp); |
1879 char * config_cycles = tern_find_path(config, "clocks\0max_cycles\0", TVAL_PTR).ptrval; | 1879 char * config_cycles = tern_find_path(config, "clocks\0max_cycles\0", TVAL_PTR).ptrval; |
1880 gen->max_cycles = config_cycles ? atoi(config_cycles) : DEFAULT_SYNC_INTERVAL; | 1880 gen->max_cycles = config_cycles ? atoi(config_cycles) : DEFAULT_SYNC_INTERVAL; |
1881 gen->int_latency_prev1 = MCLKS_PER_68K * 32; | 1881 gen->int_latency_prev1 = MCLKS_PER_68K * 32; |