本文整理汇总了C++中address_map类的典型用法代码示例。如果您正苦于以下问题:C++ address_map类的具体用法?C++ address_map怎么用?C++ address_map使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了address_map类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void basic52_state::basic52_mem(address_map &map)
{
map.unmap_value_high();
map(0x0000, 0x1fff).rom();
map(0x2000, 0x7fff).ram();
//AM_RANGE(0x8000, 0x9fff) AM_ROM // EPROM
//AM_RANGE(0xc000, 0xdfff) // Expansion block
//AM_RANGE(0xe000, 0xffff) // Expansion block
}
示例2: FUNC
void mazerbla_state::mazerbla_cpu3_io_map(address_map &map)
{
map.global_mask(0xff);
map(0x01, 0x01).w(m_vcu, FUNC(mb_vcu_device::background_color_w));
map(0x02, 0x02).r(m_vcu, FUNC(mb_vcu_device::status_r)).w(FUNC(mazerbla_state::cfb_led_w));
map(0x03, 0x03).w(FUNC(mazerbla_state::cfb_zpu_int_req_set_w));
map(0x04, 0x04).w(FUNC(mazerbla_state::cfb_rom_bank_sel_w));
map(0x05, 0x05).w(m_vcu, FUNC(mb_vcu_device::vbank_w));
}
示例3: mem_map
void instruct_state::mem_map(address_map &map)
{
map.unmap_value_high();
map(0x0000, 0x0ffe).ram().share("mainram");
map(0x0fff, 0x0fff).rw(FUNC(instruct_state::port_r), FUNC(instruct_state::port_w));
map(0x1780, 0x17ff).ram().share("smiram");
map(0x1800, 0x1fff).rom().region("roms", 0);
map(0x2000, 0x7fff).ram().share("extram");
}
示例4: io_map
void holeland_state::io_map(address_map &map)
{
map.global_mask(0xff);
map(0x01, 0x01).r("watchdog", FUNC(watchdog_timer_device::reset_r)); /* ? */
map(0x04, 0x04).r("ay1", FUNC(ay8910_device::data_r));
map(0x04, 0x05).w("ay1", FUNC(ay8910_device::address_data_w));
map(0x06, 0x06).r("ay2", FUNC(ay8910_device::data_r));
map(0x06, 0x07).w("ay2", FUNC(ay8910_device::address_data_w));
}
示例5: FUNC
void basic52_state::basic52_io(address_map &map)
{
map.unmap_value_high();
map(0x0000, 0x7fff).ram();
map(0x8000, 0x9fff).rom(); // EPROM
map(0xa000, 0xa003).rw("ppi8255", FUNC(i8255_device::read), FUNC(i8255_device::write)); // PPI-8255
//AM_RANGE(0xc000, 0xdfff) // Expansion block
//AM_RANGE(0xe000, 0xffff) // Expansion block
}
示例6: shisen_io_map
void shisen_state::shisen_io_map(address_map &map)
{
map.global_mask(0xff);
map(0x00, 0x00).rw(FUNC(shisen_state::dsw1_r), FUNC(shisen_state::coin_w));
map(0x01, 0x01).portr("DSW2").w("soundlatch", FUNC(generic_latch_8_device::write));
map(0x02, 0x02).portr("P1").w(FUNC(shisen_state::bankswitch_w));
map(0x03, 0x03).portr("P2");
map(0x04, 0x04).portr("COIN");
}
示例7: FUNC
void tim100_state::tim100_mem(address_map &map)
{
map.unmap_value_high();
map(0x0000, 0x1fff).rom(); // 2764 at U16
map(0x2000, 0x27ff).ram().share("videoram"); // 2KB static ram CDM6116A at U15
map(0x6000, 0x6001).rw("uart_u17", FUNC(i8251_device::read), FUNC(i8251_device::write));
map(0x8000, 0x8001).rw("uart_u18", FUNC(i8251_device::read), FUNC(i8251_device::write));
map(0xa000, 0xa000).nopw(); // continuously writes 00 here
map(0xc000, 0xc001).rw(m_crtc, FUNC(i8276_device::read), FUNC(i8276_device::write)); // i8276
}
示例8: zsu_io
void efo_zsu_device::zsu_io(address_map &map)
{
map.global_mask(0xff);
map.unmap_value_high();
map(0x00, 0x03).rw(m_ctc0, FUNC(z80ctc_device::read), FUNC(z80ctc_device::write));
map(0x04, 0x07).rw(m_ctc1, FUNC(z80ctc_device::read), FUNC(z80ctc_device::write));
map(0x08, 0x08).w(FUNC(efo_zsu_device::adpcm_fifo_w));
map(0x0c, 0x0c).w("aysnd0", FUNC(ay8910_device::address_w));
map(0x0d, 0x0d).w("aysnd0", FUNC(ay8910_device::data_w));
map(0x10, 0x10).w("aysnd1", FUNC(ay8910_device::address_w));
map(0x11, 0x11).w("aysnd1", FUNC(ay8910_device::data_w));
map(0x14, 0x14).r(m_soundlatch, FUNC(generic_latch_8_device::read));
}
示例9:
void kc85_4_state::kc85_4_mem(address_map &map)
{
map.unmap_value_high();
map(0x0000, 0x3fff).bankrw("bank1");
map(0x4000, 0x7fff).bankrw("bank2");
map(0x8000, 0xa7ff).bankrw("bank3");
map(0xa800, 0xbfff).bankrw("bank6");
map(0xc000, 0xdfff).bankr("bank4");
map(0xe000, 0xffff).bankr("bank5");
}
示例10: votrpss_mem
void votrpss_state::votrpss_mem(address_map &map)
{
map.unmap_value_high();
map(0x0000, 0x3fff).rom(); /* main roms (in potted module) */
map(0x4000, 0x7fff).noprw(); /* open bus/space for expansion rom (reads as 0xFF) */
map(0x8000, 0x8fff).ram(); /* onboard memory (2x 6116) */
map(0x9000, 0xbfff).noprw(); /* open bus (space for memory expansion, checked by main roms, will be used if found)*/
map(0xc000, 0xdfff).rom(); /* 'personality rom', containing self-test code and optional user code */
map(0xe000, 0xffff).noprw(); /* open bus (space for more personality rom, not normally used) */
}
示例11:
void m52_state::main_portmap(address_map &map)
{
map.global_mask(0xff);
map(0x00, 0x00).mirror(0x1f).w(FUNC(m52_state::m52_scroll_w));
map(0x40, 0x40).mirror(0x1f).w(FUNC(m52_state::m52_bg1xpos_w));
map(0x60, 0x60).mirror(0x1f).w(FUNC(m52_state::m52_bg1ypos_w));
map(0x80, 0x80).mirror(0x1f).w(FUNC(m52_state::m52_bg2xpos_w));
map(0xa0, 0xa0).mirror(0x1f).w(FUNC(m52_state::m52_bg2ypos_w));
map(0xc0, 0xc0).mirror(0x1f).w(FUNC(m52_state::m52_bgcontrol_w));
}
示例12: pinbo_audio_io_map
void lasso_state::pinbo_audio_io_map(address_map &map)
{
map.global_mask(0xff);
map(0x00, 0x01).w("ay1", FUNC(ay8910_device::address_data_w));
map(0x02, 0x02).r("ay1", FUNC(ay8910_device::data_r));
map(0x04, 0x05).w("ay2", FUNC(ay8910_device::address_data_w));
map(0x06, 0x06).r("ay2", FUNC(ay8910_device::data_r));
map(0x08, 0x08).r(m_soundlatch, FUNC(generic_latch_8_device::read)).nopw(); /* ??? */
map(0x14, 0x14).nopw(); /* ??? */
}
示例13: FUNC
void trs80dt1_state::io_map(address_map &map)
{
map.global_mask(0xbfff); // A14 not used
map(0xa000, 0xa7ff).ram().share("videoram");
map(0xa800, 0xa83f).mirror(0x3c0).rw(m_nvram, FUNC(x2210_device::read), FUNC(x2210_device::write)); // X2210
map(0xac00, 0xafff).r(FUNC(trs80dt1_state::key_r));
map(0xb000, 0xb3ff).portr("X9"); // also reads some RS232 inputs
map(0xb400, 0xb7ff).w(FUNC(trs80dt1_state::store_w));
map(0xbc00, 0xbc01).mirror(0x3fe).rw(m_crtc, FUNC(i8276_device::read), FUNC(i8276_device::write)); // i8276
}
示例14: FUNC
void sdk85_state::sdk85_mem(address_map &map)
{
map.unmap_value_high();
map(0x0000, 0x07ff).r("romio", FUNC(i8355_device::memory_r));
map(0x0800, 0x0fff).r("expromio", FUNC(i8355_device::memory_r));
map(0x1800, 0x1800).mirror(0x06ff).rw("kdc", FUNC(i8279_device::data_r), FUNC(i8279_device::data_w));
map(0x1900, 0x1900).mirror(0x06ff).rw("kdc", FUNC(i8279_device::status_r), FUNC(i8279_device::cmd_w));
map(0x2000, 0x20ff).mirror(0x0700).rw("ramio", FUNC(i8155_device::memory_r), FUNC(i8155_device::memory_w));
map(0x2800, 0x28ff).mirror(0x0700).rw("expramio", FUNC(i8155_device::memory_r), FUNC(i8155_device::memory_w));
}
示例15: galaxia_io_map
void galaxia_state::galaxia_io_map(address_map &map)
{
map.unmap_value_high();
map(0x00, 0x00).w(FUNC(galaxia_state::galaxia_scroll_w)).portr("IN0");
map(0x02, 0x02).portr("IN1");
map(0x05, 0x05).nopr();
map(0x06, 0x06).portr("DSW0");
map(0x07, 0x07).portr("DSW1");
map(0xac, 0xac).nopr();
}