本文整理汇总了C++中prg16_89ab函数的典型用法代码示例。如果您正苦于以下问题:C++ prg16_89ab函数的具体用法?C++ prg16_89ab怎么用?C++ prg16_89ab使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了prg16_89ab函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: prg16_89ab
void nes_action53_device::update_prg()
{
uint8_t prg_lo, prg_hi, helper;
uint8_t out = (m_reg[3] & 0x3f) << 1; // Outer PRG reg
uint8_t size = (m_reg[2] & 0x30) >> 4; // Game size
uint8_t mask = (1 << (size + 1)) - 1; // Bits to be taken from PRG reg
if (!BIT(m_reg[2], 3))
{
helper = (out & ~mask) | ((m_reg[1] << 1) & mask);
//32K mode
prg_lo = (helper & 0xfe);
prg_hi = (helper | 0x01);
}
else
{
helper = (out & ~mask) | (m_reg[1] & mask);
if (BIT(m_reg[2], 2))
{
//16K mode with fixed HI
prg_lo = helper;
prg_hi = (out | 0x01);
}
else
{
//16K mode with fixed LO
prg_lo = (out & 0xfe);
prg_hi = helper;
}
}
// printf("banks : 0x%2X - 0x%2X\n", prg_lo, prg_hi);
prg16_89ab(prg_lo);
prg16_cdef(prg_hi);
}
开发者ID:broftkd,项目名称:mame,代码行数:35,代码来源:act53.cpp
示例2: prg16_89ab
void nes_dreamtech_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(8);
chr8(0, m_chr_source);
}
开发者ID:Enverex,项目名称:mame,代码行数:7,代码来源:pirate.cpp
示例3: prg16_89ab
void nes_sachen_tca01_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(1);
chr8(0, m_chr_source);
}
开发者ID:DanielAeolusLaude,项目名称:mame,代码行数:7,代码来源:sachen.c
示例4: prg16_89ab
void nes_holydivr_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
}
开发者ID:MoochMcGee,项目名称:mame,代码行数:7,代码来源:irem.cpp
示例5: prg16_89ab
void nes_jf17_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
m_latch = 0;
}
开发者ID:Ashura-X,项目名称:mame,代码行数:8,代码来源:jaleco.cpp
示例6: prg16_89ab
void nes_karaokestudio_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef((m_prg_chunks - 1) ^ 0x08);
chr8(0, m_chr_source);
m_exp_active = 0;
}
开发者ID:robsonfr,项目名称:mame,代码行数:8,代码来源:karastudio.cpp
示例7: prg16_89ab
void nes_sunsoft_2_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
if (m_pcb_ctrl_mirror)
set_nt_mirroring(PPU_MIRROR_LOW);
}
开发者ID:Eduardop,项目名称:mame,代码行数:9,代码来源:sunsoft.c
示例8: prg16_89ab
void nes_subor1_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(0x07);
chr8(0, m_chr_source);
memset(m_reg, 0, sizeof(m_reg));
}
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:9,代码来源:nes_pirate.c
示例9: prg16_89ab
void nes_konami_vrc1_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
memset(m_mmc_vrom_bank, 0, sizeof(m_mmc_vrom_bank));
}
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:9,代码来源:nes_konami.c
示例10: prg16_89ab
void nes_waixing_ffv_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(0x1f);
chr8(0, m_chr_source);
m_reg[0] = m_reg[1] = 0;
}
开发者ID:CJBass,项目名称:mame2013-libretro,代码行数:9,代码来源:nes_waixing.c
示例11: prg16_89ab
void nes_btl_dn_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
m_irq_count = 0;
}
开发者ID:jiangzhonghui,项目名称:mame,代码行数:9,代码来源:bootleg.c
示例12: prg16_89ab
void nes_racermate_device::pcb_reset()
{
// m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr4_0(0, CHRRAM);
chr4_4(0, CHRRAM);
m_latch = 0;
}
开发者ID:broftkd,项目名称:mame,代码行数:10,代码来源:racermate.cpp
示例13: chr8
void nes_bf9096_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
chr8(0, m_chr_source);
m_latch = 0x00;
m_bank_base = 0x0c;
prg16_89ab(m_bank_base | m_latch);
prg16_cdef(m_bank_base | 3);
}
开发者ID:Ashura-X,项目名称:mame,代码行数:10,代码来源:camerica.cpp
示例14: prg16_89ab
void nes_namcot3425_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
m_latch = 0;
memset(m_reg, 0, sizeof(m_reg));
}
开发者ID:broftkd,项目名称:mame,代码行数:10,代码来源:namcot.cpp
示例15: prg16_89ab
void nes_fxrom_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
m_reg[0] = m_reg[2] = 0;
m_reg[1] = m_reg[3] = 0;
m_latch1 = m_latch2 = 0xfe;
}
开发者ID:broftkd,项目名称:mame,代码行数:11,代码来源:mmc2.cpp
示例16: LOG_MMC
void nes_holydivr_device::write_h(offs_t offset, uint8_t data)
{
LOG_MMC(("holy diver write_h, offset: %04x, data: %02x\n", offset, data));
// this pcb is subject to bus conflict
data = account_bus_conflict(offset, data);
set_nt_mirroring(BIT(data, 3) ? PPU_MIRROR_VERT : PPU_MIRROR_HORZ);
chr8(data >> 4, CHRROM);
prg16_89ab(data);
}
开发者ID:MoochMcGee,项目名称:mame,代码行数:11,代码来源:irem.cpp
示例17: prg16_89ab
void nes_tc0190fmc_pal16r4_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
m_irq_enable = 0;
m_irq_count = 0;
m_irq_count_latch = 0;
}
开发者ID:DanielAeolusLaude,项目名称:mame,代码行数:11,代码来源:taito.c
示例18: prg16_89ab
void nes_lz93d50_24c01_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
m_irq_enable = 0;
m_irq_count = 0;
m_i2c_dir = 0;
}
开发者ID:DragonMinded,项目名称:mame,代码行数:11,代码来源:bandai.cpp
示例19: prg16_89ab
void nes_ks7017_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(2);
chr8(0, m_chr_source);
m_latch = 0;
m_irq_enable = 0;
m_irq_count = 0;
m_irq_status = 0;
}
开发者ID:Enverex,项目名称:mame,代码行数:12,代码来源:kaiser.cpp
示例20: prg16_89ab
void nes_nanjing_device::pcb_reset()
{
m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(m_prg_chunks - 2);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
m_count = 0xff;
m_latch1 = 0;
m_latch2 = 0;
m_reg[0] = 0xff;
m_reg[1] = 0;
}
开发者ID:RafTacker,项目名称:mame,代码行数:13,代码来源:nanjing.cpp
注:本文中的prg16_89ab函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论