2017-01-13 23:59:38 +00:00
|
|
|
auto HuC6280::mmu(uint16 addr) const -> uint21 {
|
|
|
|
return r.mpr[addr.bits(13,15)] << 13 | addr.bits(0,12);
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
auto HuC6280::load(uint16 addr) -> uint8 {
|
|
|
|
step(r.cs);
|
|
|
|
return read(mmu(addr));
|
|
|
|
}
|
|
|
|
|
|
|
|
auto HuC6280::store(uint16 addr, uint8 data) -> void {
|
|
|
|
step(r.cs);
|
|
|
|
return write(mmu(addr), data);
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
2017-01-13 01:15:45 +00:00
|
|
|
auto HuC6280::io() -> uint8 {
|
2017-01-13 23:59:38 +00:00
|
|
|
return load(r.pc);
|
2017-01-13 01:15:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
auto HuC6280::opcode() -> uint8 {
|
2017-01-13 23:59:38 +00:00
|
|
|
return load(r.pc++);
|
2017-01-13 01:15:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
auto HuC6280::operand() -> uint8 {
|
2017-01-13 23:59:38 +00:00
|
|
|
return load(r.pc++);
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
auto HuC6280::push(uint8 data) -> void {
|
Update to v101r35 release.
byuu says:
Changelog:
- PCE: added 384KB HuCard ROM mirroring mode
- PCE: corrected D-pad polling order
- PCE: corrected palette color ordering (GRB, not RGB -- yes,
seriously)
- PCE: corrected SATB DMA -- should write to SATB, not to VRAM
- PCE: broke out Background, Sprite VDC settings to separate
subclasses
- PCE: emulated VDC backgrounds
- PCE: emulated VDC sprites
- PCE: emulated VDC sprite overflow, collision interrupts
- HuC6280: fixed disassembler output for STi instructions
- HuC6280: added missing LastCycle check to interrupt()
- HuC6280: fixed BIT, CMP, CPX, CPY, TRB, TSB, TST flag testing and
result
- HuC6280: added extra cycle delays to the block move instructions
- HuC6280: fixed ordering for flag set/clear instructions (happens
after LastCycle check)
- HuC6280: removed extra cycle from immediate instructions
- HuC6280: fixed indirectLoad, indirectYStore absolute addressing
- HuC6280: fixed BBR, BBS zeropage value testing
- HuC6280: fixed stack push/pull direction
Neutopia looks okay until the main title screen, then there's some
gibberish on the bottom. The game also locks up with some gibberish once
you actually start a new game. So, still not playable just yet =(
2017-01-19 08:38:57 +00:00
|
|
|
store(0x2100 + (S--), data);
|
2017-01-13 23:59:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
auto HuC6280::pull() -> uint8 {
|
Update to v101r35 release.
byuu says:
Changelog:
- PCE: added 384KB HuCard ROM mirroring mode
- PCE: corrected D-pad polling order
- PCE: corrected palette color ordering (GRB, not RGB -- yes,
seriously)
- PCE: corrected SATB DMA -- should write to SATB, not to VRAM
- PCE: broke out Background, Sprite VDC settings to separate
subclasses
- PCE: emulated VDC backgrounds
- PCE: emulated VDC sprites
- PCE: emulated VDC sprite overflow, collision interrupts
- HuC6280: fixed disassembler output for STi instructions
- HuC6280: added missing LastCycle check to interrupt()
- HuC6280: fixed BIT, CMP, CPX, CPY, TRB, TSB, TST flag testing and
result
- HuC6280: added extra cycle delays to the block move instructions
- HuC6280: fixed ordering for flag set/clear instructions (happens
after LastCycle check)
- HuC6280: removed extra cycle from immediate instructions
- HuC6280: fixed indirectLoad, indirectYStore absolute addressing
- HuC6280: fixed BBR, BBS zeropage value testing
- HuC6280: fixed stack push/pull direction
Neutopia looks okay until the main title screen, then there's some
gibberish on the bottom. The game also locks up with some gibberish once
you actually start a new game. So, still not playable just yet =(
2017-01-19 08:38:57 +00:00
|
|
|
return load(0x2100 + (++S));
|
2017-01-13 01:15:45 +00:00
|
|
|
}
|