0.166
-------

MAMETesters Bugs Fixed
----------------------
- 05345: [Core] (a2600.c) a2600 [dodgeem, haunted]: Assorted issues related to 6502 CPU [Mike Saarna, Trebor, R. Belmont].
- 05718: [Graphics] (a2600.c) a2600p: The demo "TOM/JONES by trilobit" is not working properly [Mike Saarna, Trebor, R. Belmont].
- 05714: [Graphics] (a2600.c) a2600p: The demo "(core) by wamma" is not working properly [Mike Saarna, Trebor, R. Belmont].
- 05622: [Graphics] (msx.c) MSX2 and MSX2+: Screen resolutions and refresh rates are wrong [Wilbert Pol].
- 05623: [Graphics] (msx.c) MSX2 and MSX2+: Top and bottom screenborders are wrong for both PAL and NTSC [Wilbert Pol].
- 05872: [DIP/Input] (sms.c) sms, sms1 [alexbmx][megumi]: Incorrect behavior of the Sports Pad (US model) emulation  [Enik Land].


Source Changes
--------------
- TMS51xx: Got rid of the request_bits and FIFO implementation, both of which were incorrect to hardware. Minor ZPAR fix. Some comment cleanup [Lord Nightmare].
- TMS5110.c: Finally fixed zpar logic correctly [Lord Nightmare].
- TMS5220: Implemented talk status state machine properly as shown by patent. Got rid of m_target_* hack in favor of loading data from ROM as needed. Fixed ZPAR logic. Fixed pitch zeroing to match(?) patent [Lord Nightmare].
- TMS5220: Purge process() of gotos to hopefully make the compiler's optimizer happier. Add a hack so Victory's "Shields Up" sample and the sample afterward aren't corrupted [Lord Nightmare].
- TMS5110: Purge process() of gotos to hopefully make the compiler's optimizer happier [Lord Nightmare].
- chihiro.c/xbox.c: Various updates [Samuele Zannoli]
  * support render targets different than rgb32
  * support 16 bit depth buffer
  * support independent clearing of stencil and depth values
  * update rom loading
  * add xbox hack to avoid stalling
  * set xbox bios 4134 as the one used
- xbox.c: Now it is able to execute the default.xbe from an iso image [Samuele Zannoli].
- Fixed GetModuleHandle to be universal [Vladimir Kryvian].
- besta: Hook up 68230 and make its ROM self-test pass [shattered].
- at, at_keybc: Hook up Display Switch and remove irrelevant DSW0 [shattered].
- Add skeleton support for K1801VM2 (as clone of T11) and skeleton driver dvk_kcgd that uses it [shattered].
- TMS5110: Add same FAST_START_HACK as in tms5220, makes snmath word delay closer to hardware [Lord Nightmare].
- asst128: Use better ROM dumps [shattered].
- apple2/apple2e: Fix raster parameters, French Touch "Scroll Scroll Scroll" demo now syncs on apple2e driver [R. Belmont].
- opengl: fix overly-strict requirement on SCREEN shaders to match docs [cgwg].
- n64.c: Development Disk Drive setting support [LuigiBlood].
- apple2e.c: Select displayed page for floating bus [Peter Ferrie].
- bbc: Clones, floppy formats, softlists, and cleanups. [Nigel Barnes]
  * Added clone bbcb1770, bbcb now 8271 only.
  * Added clone pro128s, Olivetti Prodest PC 128S.
  * Added clones Acorn Business Computers and Cambridge Workstation.
  * Added clone reutapm, Reuters APM board.
  * Improved floppy formats, added dsd and double density formats for ADFS.
  * Added speech PHROMs, not yet hooked up correctly.
  * Added softlists bbcb_de_cass, bbcb_us_flop and bbcmc_flop.
  * Added S11 links (dipswitch) to specify Econet ID.
  * Address map cleanups.
- Sega Pico PCM improvements [ValleyBell].
- pcd: Implement pcx video device [Carl, Axel Muhr].
-al520ex: Added preliminary Magic Sound expansion (not working) [Barry Rodewald].
- netdev: Fix pcap crashes on OS X [Rob Braun].
- TMS5220 and TMS5110: Fix an off-by-one in the interpolator causing the k5 coefficient to not be zeroed during unvoiced frames. Fixes various speech glitches [Lord Nightmare].
- TMS5220 and TMS5110: Fixed incorrect implementation of pitch zero which caused an improperly long period with no pitch at an interpolation inhibited -> voiced boundary. Moved unvoiced parameter zeroing into the frame parser, as on the original chips. Some minor TALK/SPEN state machine changes as well, which should have minimal effect [Lord Nightmare].
- Added 'global_inputs' (disabled by default) to allow MAME to read inputs even when it doesn't have the focus [Scrooge McClunk].
- 315-5124.c: Minor changes and fix a regression that in theory could affect zoomed sprites in TMS9918 modes [Enik Land].
- gamegear.c/sms.c: Improve GG-SMS scaling code a little and update the Todo list. Fixed MT#05872 regarding incorrect behavior of the Sports Pad (US model) emulation [Enik Land].
- Fix PSG chips to have volume reg inited on reset to 0x0 based on tests by ValleyBell. Made Sega PSG chips start up with register 0x3 selected (volume for channel 2) based on hardware tests by Nemesis [Lord Nightmare, ValleyBell, Nemesis].
- Significant accuracy improvements, documentation and other updates to the ER-2055 EAROM emulation used for several Atari games, based on schematics and datasheets. It now uses a state machine to keep track of the current EAROM bus state [Lord Nightmare].
- Simplified coreutil.c gregorian_days_in_month [William Krick].
- DEC LA120: Keyboard matrix is done, keyboard reading should work in theory. UART partly attached. Corrected cpu XTAL [Lord Nightmare].
- DEC LA120: Implemented LED output via logerror; marked one ROM as bad since it fails its internal checksum tests [Lord Nightmare].
- n64.c: N64 changes: [Happy]
  * PI transfers round down/truncate the last bit.
  * SI transfers signal busy while waiting for a delay.
  * Preliminary work for separating VI and RDP functionality.
  * VI timing period is now set dynamically from the VI registers. VI timing should now be accurate (for NTSC).
- DEC LA120: Redumped firmware ROM, now passes checksum test [Brian Walenz].
- a2600: New 6502 PC=cur inst, old 6502 PC=prev inst (MT 5345) [Mike Saarna, Trebor, R. Belmont].
- i8271: Modernize [Carl].
- a7800: More accurate representation of the Activision cart hardware for utilized hotspots. Rampage no longer crashes when P1 selects Lizzy [Mike Saarna].


New machines added or promoted from NOT_WORKING status
------------------------------------------------------
TI DataMan [hap, Sean Riddle]


New machines marked as NOT_WORKING
----------------------------------
Amazonia King II (V202BR) [Macgaiver]
Brother MT735 thermal printer [Cowering, O. Galibert]
Canon S-80 typowriter [Felipe Sanches]
Commodore MPS-1230 NLQ Printer [Guru, R. Belmont]
DECwriter III (LA120) [Lord Nightmare, NeXT]
Heurikon HK68K/V10 VME board [Joakim Larsson]
LG GP40NW10 USB DVD writer [O. Galibert]
Mizar 8105 [Joakim Larsson]
MVME350 - Streaming Tape Controller support QIC-02 [Joakim Larsson]
Squale [Miodrag Milanovic, thanks to Olivier Aichelbaum]
VTech Genius KID ABC Fan (Germany) [TeamEurope]
VTech CARS 2 Laptop (Germany) [TeamEurope]
ZAP - Z80 Applications Processor (by Steve Ciarcia - 1981) [Felipe Sanches]


New WORKING software list additions
-----------------------------------
tutor.xml: (Tomy Tutor & Pyuuta cartridges)
- Rescue Copter [3D] (Jpn) [Ryan Holtz, Team Europe]
- Triple Command (Jpn) [Ryan Holtz, Team Europe]
nes.xml: (Nintendo Entertainment System cartridges)
- Booky Man (Spa) [SSJ, TeamEurope]
a800_flop.xml: (Atari 400 / 800 floppy disks)
 - Elektra Glide [Curt Coder]
 - KoalaPainter (Light Pen) [Curt Coder]
c64_flop.xml: (Commodore 64 diskettes) 
 - Elektra Glide [Curt Coder]
 - KoalaPainter (Light Pen) [Curt Coder]


New NOT_WORKING software list additions
---------------------------------------

gameking.xml: (TimeTop GameKing cartridges)
 - various 4-in-1 sets [SSJ, TeamEurope]   
gameking3.xml: (TimeTop GameKing 3 cartridges)
 - Fly Cab [SSJ, TeamEurope]
gbcolor.xml: (Nintendo Game Boy Color cartridges)
 - Magic Lamp [SSJ, TeamEurope, Taizou]
 - Binary Monster 2 - Adventure of Hell(TW) [SSJ, TeamEurope]
nes.xml: (Nintendo Entertainment System cartridges)
 - Coolboy RS-17 (203-in-1) [SSJ, TeamEurope]
pico.xml: (Sega Pico cartridges)
 - Anpanman Eigo - Tanosii Kanibaru (Tw) [TeamEurope]
 - Doraemon Machinaka (Tw) [TeamEurope]
 - Mickey To Ookina Furudokei (Tw)) [TeamEurope]
 - Ojamajo Doremi Dokka~n! (Jpn) [TeamEurope]
 - Professor Pico and the Paintbox Puzzle (Euro) [TeamEurope]
 - Peter Pan - Neverland e Ikou! ~10th Anniversary Edition~ (Jpn) [TeamEurope]
 - Sanou Kaihatsu Series 5 Meiro - Kioku (CD Tsuki) (Jpn) [TeamEurope]
 - Susie-chan to Marvy o-Tetsudai Da~isuki! (Jpn) [TeamEurope]
vc4000.xml: (Interton VC 4000 cartridges)
 - Come Frutas [SSJ, TeamEurope]
jaguar.xml: (Atari Jaguar cartridges)
 - Air Cars (1994 version) [Porchy]