mirror of https://github.com/bsnes-emu/bsnes.git
65a3e6c676
byuu says: This is a fairly radical WIP with extreme changes to lots of very important parts. The result is a ~7% emulation speedup (with bsnes, unsure how much it helps higan), but it's quite possible there are regressions. As such, I would really appreciate testing as many games as possible ... especially the old finnicky games that had issues with DMA and/or interrupts. One thing to note is that I removed an edge case test that suppresses IRQs from firing on the very last dot of every field, which is a behavior I've verified on real hardware in the past. I feel that the main interrupt polling function (the hottest portion of the entire emulator) is not the appropriate place for it, and I should instead factor it into assignment of NMITIMEN/VTIME/HTIME using the new io.irqEnable (==virqEnable||hirqEnable) flag. But since I haven't done that yet ... there's an old IRQ test ROM of mine that'll fail for this WIP. No commercial games will ever rely on this, so it's fine for testing. Changelog: - sfc/cpu.smp: inlined the global status functions - sfc/cpu: added readRAM, writeRAM to use a function pointer instead of a lambda for WRAM access - sfc/cpu,smp,ppu/counter: updated reset functionality to new style using class inline initializers - sfc/cpu: fixed power(false) to invoke the reset vector properly - sfc/cpu: completely rewrote DMA handling to have per-channel functions - sfc/cpu: removed unused joylatch(), io.joypadStrobeLatch - sfc/cpu: cleaned up io.cpp handlers - sfc/cpu: simplified interrupt polling code using nall::boolean::flip(),raise(),lower() functions - sfc/ppu/counter: cleaned up the class significantly and also optimized things for efficiency - sfc/ppu/counter: emulated PAL 1368-clock long scanline when interlace=1, field=1, vcounter=311 - sfc/smp: factored out the I/O and port handlers to io.cpp |
||
---|---|---|
.. | ||
arithmetic | ||
beat | ||
cipher | ||
database | ||
decode | ||
dsp | ||
elliptic-curve | ||
emulation | ||
encode | ||
hash | ||
http | ||
image | ||
mac | ||
macos | ||
posix | ||
string | ||
vector | ||
vfs | ||
windows | ||
xorg | ||
GNUmakefile | ||
adaptive-array.hpp | ||
algorithm.hpp | ||
any.hpp | ||
arithmetic.hpp | ||
array.hpp | ||
atoi.hpp | ||
bit-field.hpp | ||
bit-vector.hpp | ||
bit.hpp | ||
chrono.hpp | ||
directory.hpp | ||
dl.hpp | ||
endian.hpp | ||
file.hpp | ||
filemap.hpp | ||
function.hpp | ||
hashset.hpp | ||
hid.hpp | ||
image.hpp | ||
inode.hpp | ||
interpolation.hpp | ||
intrinsics.hpp | ||
iterator.hpp | ||
locale.hpp | ||
location.hpp | ||
main.hpp | ||
map.hpp | ||
matrix.hpp | ||
maybe.hpp | ||
memory.hpp | ||
nall.hpp | ||
path.hpp | ||
platform.hpp | ||
pointer.hpp | ||
primitives.hpp | ||
property.hpp | ||
queue.hpp | ||
random.hpp | ||
range.hpp | ||
run.hpp | ||
serial.hpp | ||
serializer.hpp | ||
service.hpp | ||
set.hpp | ||
shared-memory.hpp | ||
shared-pointer.hpp | ||
smtp.hpp | ||
sort.hpp | ||
stdint.hpp | ||
string.hpp | ||
thread.hpp | ||
traits.hpp | ||
unique-pointer.hpp | ||
utility.hpp | ||
varint.hpp | ||
vector.hpp | ||
vfs.hpp |