• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ address_map类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中address_map的典型用法代码示例。如果您正苦于以下问题:C++ address_map类的具体用法?C++ address_map怎么用?C++ address_map使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了address_map类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
}
开发者ID:MASHinfo,项目名称:mame,代码行数:9,代码来源:basic52.cpp


示例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));
}
开发者ID:rfka01,项目名称:mame,代码行数:9,代码来源:mazerbla.cpp


示例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");
}
开发者ID:fesh0r,项目名称:mame-full,代码行数:9,代码来源:instruct.cpp


示例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));
}
开发者ID:SailorSat,项目名称:cabmame,代码行数:9,代码来源:holeland.cpp


示例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
}
开发者ID:MASHinfo,项目名称:mame,代码行数:9,代码来源:basic52.cpp


示例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");
}
开发者ID:Octocontrabass,项目名称:mame,代码行数:9,代码来源:shisen.cpp


示例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
}
开发者ID:MASHinfo,项目名称:mame,代码行数:10,代码来源:tim100.cpp


示例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));

}
开发者ID:Octocontrabass,项目名称:mame,代码行数:19,代码来源:efo_zsu.cpp


示例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");
}
开发者ID:Octocontrabass,项目名称:mame,代码行数:10,代码来源:kc.cpp


示例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) */
}
开发者ID:MASHinfo,项目名称:mame,代码行数:10,代码来源:votrpss.cpp


示例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));
}
开发者ID:MASHinfo,项目名称:mame,代码行数:10,代码来源:m52.cpp


示例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();    /* ??? */
}
开发者ID:justindarc,项目名称:mame,代码行数:10,代码来源:lasso.cpp


示例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
}
开发者ID:SailorSat,项目名称:cabmame,代码行数:10,代码来源:trs80dt1.cpp


示例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));
}
开发者ID:SailorSat,项目名称:cabmame,代码行数:10,代码来源:sdk85.cpp


示例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();
}
开发者ID:MASHinfo,项目名称:mame,代码行数:10,代码来源:galaxia.cpp


示例16: bankp_io_map

void bankp_state::bankp_io_map(address_map &map)
{
	map.global_mask(0xff);
	map(0x00, 0x00).portr("IN0").w("sn1", FUNC(sn76489_device::write));
	map(0x01, 0x01).portr("IN1").w("sn2", FUNC(sn76489_device::write));
	map(0x02, 0x02).portr("IN2").w("sn3", FUNC(sn76489_device::write));
	map(0x04, 0x04).portr("DSW1");
	map(0x05, 0x05).w(FUNC(bankp_state::scroll_w));
	map(0x07, 0x07).w(FUNC(bankp_state::out_w));
}
开发者ID:PugsyMAME,项目名称:mame,代码行数:10,代码来源:bankp.cpp


示例17: FUNC

void cms_state::cms6502_mem(address_map &map)
{
	map.unmap_value_high();
	map(0x0000, 0x7fff).ram();  /* socket M1 43256C-12 32K RAM */
	map(0x8000, 0xbfff).bankr("bank1").w(FUNC(cms_state::page_select_w));
	map(0xc000, 0xffff).rom().region("mos", 0);
	map(0xfc00, 0xfc0f).rw(m_via, FUNC(via6522_device::read), FUNC(via6522_device::write));
	map(0xfc30, 0xfc3f).rw(FUNC(cms_state::cms_rtc_r), FUNC(cms_state::cms_rtc_w));
	map(0xfc70, 0xfc7f).w(FUNC(cms_state::map_select_w));
}
开发者ID:SailorSat,项目名称:cabmame,代码行数:10,代码来源:cms.cpp


示例18: FUNC

void a2bus_pcxporter_device::pc_io(address_map &map)
{
	map.unmap_value_high();
	map(0x0000, 0x000f).rw("dma8237", FUNC(am9517a_device::read), FUNC(am9517a_device::write));
	map(0x0020, 0x002f).rw("pic8259", FUNC(pic8259_device::read), FUNC(pic8259_device::write));
	map(0x0040, 0x004f).rw("pit8253", FUNC(pit8253_device::read), FUNC(pit8253_device::write));
	map(0x0060, 0x0065).rw(this, FUNC(a2bus_pcxporter_device::kbd_6502_r), FUNC(a2bus_pcxporter_device::kbd_6502_w));
	map(0x0080, 0x008f).w(this, FUNC(a2bus_pcxporter_device::pc_page_w));
	map(0x00a0, 0x00a1).w(this, FUNC(a2bus_pcxporter_device::nmi_enable_w));
}
开发者ID:system11b,项目名称:mame,代码行数:10,代码来源:pc_xporter.cpp


示例19: FUNC

void bigbord2_state::bigbord2_io(address_map &map)
{
	map.global_mask(0xff);
	map.unmap_value_high();
	map(0x80, 0x83).rw(m_sio, FUNC(z80sio_device::ba_cd_r), FUNC(z80sio_device::ba_cd_w)); // u16
	map(0x84, 0x87).rw(m_ctc1, FUNC(z80ctc_device::read), FUNC(z80ctc_device::write)); // u37 has issues
	map(0x88, 0x8b).rw(m_ctc2, FUNC(z80ctc_device::read), FUNC(z80ctc_device::write)); // u21
	map(0x8c, 0x8f).rw(m_dma, FUNC(z80dma_device::bus_r), FUNC(z80dma_device::bus_w)); // u62
	map(0xc0, 0xc3).w("proglatch", FUNC(ls259_device::write_nibble_d3)); // u41 - eprom programming port
	map(0xc4, 0xc7).r(FUNC(bigbord2_state::status_port_r)); // u11
	map(0xc8, 0xcb).w(m_syslatch1, FUNC(ls259_device::write_nibble_d3)); // u14
	map(0xcc, 0xcf).w(FUNC(bigbord2_state::syslatch2_w));
	map(0xd0, 0xd3).r(FUNC(bigbord2_state::kbd_r)); // u1
	map(0xd4, 0xd7).rw(m_fdc, FUNC(mb8877_device::read), FUNC(mb8877_device::write)); // u10
	//AM_RANGE(0xd8, 0xdb) AM_READWRITE(portd8_r, portd8_w) // various external data ports; DB = centronics printer
	map(0xd9, 0xd9).w("outlatch1", FUNC(ls259_device::write_nibble_d3)); // u96
	map(0xdc, 0xdc).mirror(2).rw("crtc", FUNC(mc6845_device::status_r), FUNC(mc6845_device::address_w)); // u30
	map(0xdd, 0xdd).mirror(2).rw("crtc", FUNC(mc6845_device::register_r), FUNC(mc6845_device::register_w));
}
开发者ID:MASHinfo,项目名称:mame,代码行数:19,代码来源:bigbord2.cpp


示例20: psionlam_mem

void psion_state::psionlam_mem(address_map &map)
{
	map.unmap_value_low();
	map(0x0000, 0x001f).rw(FUNC(psion_state::hd63701_int_reg_r), FUNC(psion_state::hd63701_int_reg_w));
	map(0x0040, 0x00ff).ram().share("sys_register");
	map(0x0100, 0x03ff).rw(FUNC(psion_state::io_r), FUNC(psion_state::io_w));
	map(0x0400, 0x7fff).ram().share("ram");
	map(0x8000, 0xbfff).bankr("rombank");
	map(0xc000, 0xffff).rom();
}
开发者ID:PugsyMAME,项目名称:mame,代码行数:10,代码来源:psion.cpp



注:本文中的address_map类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ address_space类代码示例发布时间:2022-05-31
下一篇:
C++ address类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap