void ngen_state::machine_start() { memory_share* vidshare = memshare("vram"); memory_share* fontshare = memshare("fontram"); m_hd_buffer.allocate(1024*8); // 8kB buffer RAM for HD controller if(vidshare == nullptr || fontshare == nullptr) fatalerror("VRAM not found\n"); m_vram.set(*vidshare,2); m_fontram.set(*fontshare,2); }
void bmcbowl_state::machine_reset() { #ifdef NVRAM_HACK for (int i = 0; i < m_stats_ram.bytes(); i++) m_stats_ram[i] = 0xff; init_stats(this,bmc_nv1,ARRAY_LENGTH(bmc_nv1),0); init_stats(this,bmc_nv2,ARRAY_LENGTH(bmc_nv2),0x3b0); init_stats(this,bmc_nv3,ARRAY_LENGTH(bmc_nv3),0xfe2); #endif }
bool device_image_interface::load_software_region(const char *tag, optional_shared_ptr<UINT8> &ptr) { size_t size = get_software_region_length(tag); if (size) { ptr.allocate(size); memcpy(ptr, get_software_region(tag), size); } return size > 0; }
uint32_t decstation_state::kn01_screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { uint32_t *scanline; int x, y; uint8_t pixels; uint8_t *vram = (uint8_t *)m_kn01vram.target(); for (y = 0; y < 864; y++) { scanline = &bitmap.pix32(y); for (x = 0; x < 1024; x++) { pixels = vram[(y * 1024) + x]; *scanline++ = m_palette[pixels]; } } return 0; }
void vic10_state::machine_start() { // allocate memory m_color_ram.allocate(0x400); // initialize memory uint8_t data = 0xff; for (offs_t offset = 0; offset < m_ram->size(); offset++) { m_ram->pointer()[offset] = data; if (!(offset % 64)) data ^= 0xff; } // state saving save_item(NAME(m_cia_irq)); save_item(NAME(m_vic_irq)); save_item(NAME(m_exp_irq)); }
void fp_state::video_start() { // allocate memory m_video_ram.allocate(0x20000); }