bsnes/hiro/windows
Tim Allen 571760c747 Update to v103r24 release.
byuu says:

Changelog:

  - gb/mbc6: mapper is now functional, but Net de Get has some text
    corruption¹
  - gb/mbc7: mapper is now functional²
  - gb/cpu: HDMA syncs other components after each byte transfer now
  - gb/ppu: LY,LX forced to zero when LCDC.d7 is lowered (eg disabled),
    not when it's raised (eg enabled)
  - gb/ppu: the LCD does not run at all when LCDC.d7 is clear³
      - fixes graphical corruption between scene transitions in Legend
        of Zelda - Oracle of Ages
      - thanks to Cydrak, Shonumi, gekkio for their input on the cause
        of this issue
  - md/controller: renamed "Gamepad" to "Control Pad" per official
    terminology
  - md/controller: added "Fighting Pad" (6-button controller) emulation
    [hex\_usr]
  - processor/m68k: fixed TAS to set data.d7 when
    EA.mode==DataRegisterDirect; fixes Asterix
  - hiro/windows: removed carriage returns from mouse.cpp and
    desktop.cpp
  - ruby/audio/alsa: added device driver selection [SuperMikeMan]
  - ruby/audio/ao: set format.matrix=nullptr to prevent a crash on some
    systems [SuperMikeMan]
  - ruby/video/cgl: rename term() to terminate() to fix a crash on macOS
    [Sintendo]

¹: The observation that this mapper split $4000-7fff into two banks
came from MAME's implementation. But their implementation was quite
broken and incomplete, so I didn't actually use any of it. The
observation that this mapper split $a000-bfff into two banks came from
Tauwasser, and I did directly use that information, plus the knowledge
that $0400/$0800 are the RAM bank select registers.

The text corruption is due to a race condition with timing. The game is
transferring font letters via HDMA, but the game code ends up setting
the bank# with the font a bit too late after the HDMA has already
occurred. I'm not sure how to fix this ... as a whole, I assumed my Game
Boy timing was pretty good, but apparently it's not that good.

²: The entire design of this mapper comes from endrift's notes.
endrift gets full credit for higan being able to emulate this mapper.
Note that the accelerometer implementation is still not tested, and
probably won't work right until I tweak the sensitivity a lot.

³: So the fun part of this is ... it breaks the strict 60fps rate of
the Game Boy. This was always inevitable: certain timing conditions can
stretch frames, too. But this is pretty much an absolute deal breaker
for something like Vsync timing. This pretty much requires adaptive sync
to run well without audio stuttering during the transition.

There's currently one very important detail missing: when the LCD is
turned off, presumably the image on the screen fades to white. I do not
know how long this process takes, or how to really go about emulating
it. Right now as an incomplete patch, I'm simply leaving the last
displayed image on the screen until the LCD is turned on again. But I
will have to output white, as well as add code to break out of the
emulation loop periodically when the LCD is left off eg indefinitely, or
bad things would happen. I'll work something out and then implement.

Another detail is I'm not sure how long it takes for the LCD to start
rendering again once enabled. Right now, it's immediate. I've heard it's
as long as 1/60th of a second, but that really seems incredibly
excessive? I'd like to know at least a reasonably well-supported
estimate before I implement that.
2017-08-04 23:05:06 +10:00
..
action Update to 20160106 OS X Preview for Developers release. 2016-01-07 19:17:15 +11:00
widget Update to v101r05 release. 2016-08-13 09:47:30 +10:00
application.cpp Update to v103r14 release. 2017-07-15 22:00:20 +10:00
application.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
browser-window.cpp Update to v103r14 release. 2017-07-15 22:00:20 +10:00
browser-window.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
desktop.cpp Update to v103r24 release. 2017-08-04 23:05:06 +10:00
desktop.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
font.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
font.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
group.cpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
group.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
header.hpp Update to v097r19 release. 2016-03-13 11:22:14 +11:00
hiro.Manifest Update to v094r24 release. 2015-06-16 20:30:04 +10:00
hiro.rc Update to v094r24 release. 2015-06-16 20:30:04 +10:00
keyboard.cpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
keyboard.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
layout.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
layout.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
menu-bar.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
menu-bar.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
message-window.cpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
message-window.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
monitor.cpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
monitor.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
mouse.cpp Update to v103r24 release. 2017-08-04 23:05:06 +10:00
mouse.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
object.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
object.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
platform.cpp Update to v098r09 release. 2016-05-04 20:07:13 +10:00
platform.hpp Update to v098r09 release. 2016-05-04 20:07:13 +10:00
popup-menu.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
popup-menu.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
sizable.cpp Update to higan and icarus v095r15 release. 2015-12-19 20:02:06 +11:00
sizable.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
status-bar.cpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
status-bar.hpp Update to v094r43 release. 2015-08-30 12:08:26 +10:00
timer.cpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
timer.hpp Update to v094r24 release. 2015-06-16 20:30:04 +10:00
utility.cpp Update to v099r15 release. 2016-07-04 21:48:17 +10:00
window.cpp Update to v103r13 release. 2017-07-12 18:24:27 +10:00
window.hpp Update to v103r13 release. 2017-07-12 18:24:27 +10:00