Commit Graph

388 Commits

Author SHA1 Message Date
goyuken 5f770e4696 update pad callback infrastructure in vbanext core, remove unused stub in lynx core, disable in dual gb core until i get around to it, better comment in gb core 2014-12-04 01:46:59 +00:00
adelikat a07263c04e Move InputCallbackSystem from CoreComm to IInputPollable, and refactor all cores accordingly. Lua - OnInputPoll() - log to the user when attemping to add a callback of this type to a core that has not implemented input callbacks. Mark all unmanaged cores' implementations of the InputCallbackSystem as FeatureNotImpleented, won't have any effect on functionality, but will help us keep track of the fact that they still have a bit of work to do. Still todo: ActiveChanged event handler on the base implementation of IInputCallbackSystem 2014-12-04 00:43:12 +00:00
adelikat a283063f5f some Atari 2600,7800 reorg 2014-12-01 14:21:37 +00:00
adelikat 9adc45f4d1 Add a ServiceNotApplicable attribute for cores to mark things like SaveRam and ISettable as not applicable for the given core, update the CoreFeatureAnalysis dialog to not show these interfaces for the given core (and not mark them as incomplete). Set various cores accordingly 2014-11-30 23:41:54 +00:00
adelikat a83d714c42 Break off IsLagFrame and LagCount from IEmulator and put into its own interface IInputPollable, and refactor cores as necessary. EmuHawk - account for the possibility that a core is not an IInputPollable, and do things like disable the lag counter menu item. Still some front end todos. Also still todo, move the InputCallbackSystem from CoreComm to IInputPollable 2014-11-30 20:29:30 +00:00
adelikat ce3f7ae3ac Atari 2600/7800 - break off IStatable stuff 2014-11-30 17:10:36 +00:00
adelikat 76148ae111 Break off savestate functionality from IEmulator into IStatable and refactor things accordingly. Still todo (a big todo): EmuHawk should gracefully handle a core that is not an IStatable by disabling functionality dependent upon it (Savestates, Rewind, Tastudio, etc) 2014-11-30 16:42:58 +00:00
adelikat a251cacce6 Atari 7800 - break up implementations into separate files and some other reorg 2014-11-30 16:01:01 +00:00
adelikat 865795049b Break off saveram methods from IEmulator into a separate ISaveRam interface. Remove the setter for SaveRamModified (every single core was throwing an error on this, and no client code was using it). Remove these methods from cores that don't actually implement this interface 2014-11-30 15:22:08 +00:00
adelikat 0e82fff3ff Clean out ClearSaveRam() calls since they are no longer used 2014-11-24 15:00:54 +00:00
adelikat 9c285e3e3a Put NotImplemented attribute on a bunch of things, and remove IMemoryDomains from a few cores that were implementing it but throwing a NotImplementedException 2014-11-24 01:17:05 +00:00
adelikat 4d3e7f806f Atari 2600 - break off IDebuggable stuff to its own file 2014-11-23 17:14:40 +00:00
adelikat 1832894405 IDebuggable - GetCpuFlagsAndRegisters() - refactor to make it an IDictionary instead of Dictionary 2014-11-23 16:22:02 +00:00
goyuken b50ebf8032 fix 2014-11-21 01:35:54 +00:00
adelikat d64be5ed76 SystemID is Lynx not LYNX, cuz I said so 2014-11-21 01:32:15 +00:00
adelikat ec3e4151eb set release flag on lynx core to true 2014-11-17 21:58:13 +00:00
goyuken fa8934b1d4 lynx: memory domains. R/W: RAM, Save Ram. R: Cart A, Cart B. 2014-11-02 19:11:19 +00:00
goyuken dc2ca1f010 remove the extra ISettable (non-generic argument) interface and corresponding crud from cores, and replace with a shim class 2014-10-31 15:46:13 +00:00
jlennox a64017366c Create ISettable<T,T2>/ISettable interfaces. This checkin has not been extensively tested. 2014-10-19 01:22:47 +00:00
jlennox 10b6bed056 Add IDebuggable to relevant cores and remove non-implementations of GetCpuFlagsAndRegisters/SetCpuRegister 2014-10-18 22:30:06 +00:00
goyuken ea6a61b4fb lynx: automatically rotate the 7 games that used it, yay 2014-10-15 04:58:27 +00:00
goyuken 74358cbd09 lynx: incorporate info from no-intro into game_db 2014-10-14 00:53:13 +00:00
goyuken 9897e9016b disable debugging output from previous commit 2014-09-29 20:14:21 +00:00
goyuken ee1f84bb4a lynx: savestates. should work pretty well, but format is subject to change 2014-09-29 20:13:26 +00:00
goyuken 6e1932c8bd lynx: lag indicator 2014-09-29 18:53:53 +00:00
goyuken d9258cc4b9 lynx: saveram. unfortunately, handy gives every cart with only a single ROM bank a saveram, whether or not it's needed or used. perhaps a future gamedb project, perhaps not... 2014-09-29 18:46:55 +00:00
goyuken ec659a418a compensate for australia 2014-09-16 03:04:11 +00:00
goyuken bacbaa2bec lynx: controllers and frame timing fix 2014-09-16 00:40:15 +00:00
goyuken 28a37a57da lynx mah boi https://www.youtube.com/watch?v=bNpLXo55yfw 2014-09-15 20:12:11 +00:00
adelikat 66dcccf651 Atari 2600 - code refactoring, separating out memory domain code to its own file, no functionality changes 2014-09-01 20:12:45 +00:00
adelikat 5ba74c631c Remove MemoryDomains from IEmulator into a new Interface, IMemoryDomains, Add this interface to existing cores, except null emulator (and removed memory domain related code from it). Refactored EmuHawk for ram tools to use an instance of IMemoryDomains rather than IEmulator, don't expose ram tools unless the core implements IMemoryDomains. Still a few misc todos, and probably some cleanup 2014-09-01 18:43:41 +00:00
scepheo a75827687d Atari 2600: Fixed PlayField Score flag not being set. 2014-08-29 20:09:08 +00:00
goyuken 1d383a62cc romloader stuffs, nag me if it breaks anything, i don't think it breaks anything 2014-08-23 19:06:37 +00:00
goyuken f0c8bd3842 IEmulator: clarify naming and implementations so it's clear that CloneSaveRam() always returns a clone that you can do whatever you want with (but won't modify the underlying) 2014-08-13 17:52:13 +00:00
goyuken 45b8854295 expand use of MissingFirmwareException 2014-07-31 22:06:11 +00:00
adelikat 541dfeaf03 Atari 2600 settings - add display name attribute to settings for a nicer looking config dialog 2014-07-20 00:11:51 +00:00
goyuken fb133da0c5 fix some internal settings infrastructure 2014-07-14 16:10:45 +00:00
adelikat fd80c62cdb More Util methods -> extension methods 2014-07-03 19:20:34 +00:00
adelikat bf88be8c72 Convert some more util methods to extension methods 2014-07-03 19:05:56 +00:00
adelikat 6cba3568ef More extension reorg 2014-07-03 17:23:03 +00:00
adelikat f546a8080c Move some extension methods from the generic extensions file to NumberExtensions and fix up namespaces 2014-07-03 15:35:50 +00:00
adelikat d12a16db45 Atari 7800 peripherals! 2014-06-29 00:07:17 +00:00
goyuken 80c79798ce update some author info on 2600 and swan cores 2014-06-04 19:06:36 +00:00
adelikat 3917e7c528 Automate the about box 2014-06-01 01:57:22 +00:00
adelikat 1c0f8674c3 SetCpuRegister() - don't cast PC reg to byte! Implement on SMS, Coleco, and TI-83 2014-05-31 18:25:36 +00:00
adelikat 51660dd023 Add SetCpuRegister() to IEmulator. Implemented it in Atari 2600, 7800, C64, Neshawk, and technically dual gameboy (passes it to L and R where it will fail). The rest throw NotImplementedExceptions. Lua - add emu.setregister(), catches NotImplementedExceptions and informs the user. 2014-05-31 17:03:21 +00:00
goyuken 37d0510444 add PAL A2600 framerate to movie check code 2014-05-31 16:28:31 +00:00
goyuken b31399f810 2600: internal stuff to be checked 2014-05-27 03:11:33 +00:00
adelikat 947470e1d9 Atari 2600 - break up frame advance with StartNewFrame() and EndFrame() and wire them up to Cycle and Scanline advance, all methods are now smart enough to roll over to the next frame at the right time 2014-05-27 02:45:05 +00:00
adelikat 90af0b4858 Atari 2600 - implement ScanlineAdvance(), still todo: cycle and scanline advancing don't know when to roll over a new frame 2014-05-27 02:16:47 +00:00
adelikat f207bfaec9 Atari 2600 - slight fix to the logic of FrameAdvance so that it will "finish a frame", so any sub-stepping is accounted for 2014-05-27 01:54:08 +00:00
adelikat ebbee62730 Atari 2600 debugger - slight refactoring of some things, fix step into, add total cycles, last address and distinct addresses 2014-05-27 01:33:22 +00:00
goyuken 7fdceb6158 2600: support SECAM as an alternate colour mode when in PAL mode. SECAM has its own rather unique color modulation system, and the atari engineers were too lazy to make a proper color encoder for it, so..... 2014-05-26 20:16:44 +00:00
adelikat e68e691e3c Atari 2600 Debugger - implement Step Into button 2014-05-26 19:38:02 +00:00
goyuken 4f744323cf 2600: fix hard reset sound crash caused by recent fuddlings 2014-05-26 01:21:31 +00:00
adelikat 898c57f5d9 Atari 2600 - AR (Super Charger) - implement Cart Ram memory domain, and a Fast SC Bios sync setting 2014-05-26 01:01:47 +00:00
adelikat d1743a2ce3 Atari 2600 - AR - cleanup, implement hard reset, savestates, and dispose 2014-05-26 00:55:12 +00:00
adelikat 8069653888 Atari 2600 - Fix AR mapper 2014-05-26 00:30:43 +00:00
adelikat 9c351942c0 Atari 7800 - record pal flag into movies 2014-05-25 00:00:44 +00:00
adelikat ed4c92c0f8 Atari 2600 - Set virtual width in pal to 320 2014-05-24 01:21:33 +00:00
adelikat 33abd29aec Add PAL flag to pal games in atari gamedb, remove todo in atari core 2014-05-24 01:12:18 +00:00
adelikat 4c0f693e70 Atari 2600 - expose Display Type in order to have the PAL flag recorded into movies 2014-05-23 18:04:31 +00:00
goyuken 27fa8d9a61 atari 2600: PAL support should be mostly good to go now 2014-05-23 16:37:49 +00:00
goyuken 2f7ad6a676 2600: more stuff towards PAL support 2014-05-23 15:47:48 +00:00
adelikat 424f312afa Atari 2600 - from now on, practice safe poking. Also poking is now possible on the system bus. 2014-05-23 00:29:31 +00:00
goyuken ae104deac3 fix up previous commit 2014-05-21 15:47:18 +00:00
goyuken 7dec3af0de 2600: add a pal detection heursitic. still some work to do on that 2014-05-21 14:32:41 +00:00
goyuken a6c5a9cdb2 a2600: frame timing infrastructure. frame time is now a constant 262 lines per frame. if the video frames don't match that, the situation is handled similarly to GB 2014-05-19 17:54:00 +00:00
goyuken 27a7bc7c8f i would never in a million years have written that way, so no reason to change it to that after the fact 2014-05-19 03:21:46 +00:00
adelikat f697a52c56 Fix a few warnings 2014-05-10 20:00:30 +00:00
adelikat 2c167b51ca Atari 2600 - virtual width of 275, but something does't work, oh well 2014-05-03 02:30:13 +00:00
adelikat d978e2c629 Atari 2600 - make background setting a color instead of number, in order to get a color picker in the settings dialog 2014-05-03 01:59:49 +00:00
adelikat 81ca8479f5 Atari 2600 - a round of cleanup, nothing useful here 2014-05-03 01:51:56 +00:00
goyuken 0a017f7f27 2600 video setting stuff 2014-05-03 00:48:23 +00:00
adelikat 1f242120e6 Atari 2600 - Expose top line, bottom line, and background color as Settings properties 2014-05-03 00:35:03 +00:00
adelikat c15b665e96 Atari 2600 - crop top and bottom 35 scanlines to make 160x192 2014-05-02 23:59:02 +00:00
adelikat bf363a4c42 Atari 2600 - remove doubled width hack, so it is now 160x262, still todo: don't show vblank scanlines and find a reasonable cropping default 2014-05-02 21:47:02 +00:00
goyuken b0970451aa internal infrastructure for video presentation changes (aspect ratio, apparent size, etc) 2014-04-30 23:48:37 +00:00
adelikat de1cb218a6 Add more info to IEmulator CoreAttributes, add status bar icon that gives the name of the current core with a tooltip with additional info, put bizhawk icon on "in house" cores, and the icon of the ported emulator on ported cores. Still todo: icons for ported cores other than quicknes 2014-04-25 01:19:57 +00:00
adelikat c74019a54d Add a CoreAttributes class with a CoreName field, and apply it to all cores, when recording a new movie, add a core header line that captures this name 2014-04-22 00:38:59 +00:00
adelikat 54203c00b9 Atari 2600 - Debugger - add trace logging, and show some stats: scanline, vsync, vblank 2014-04-20 01:19:33 +00:00
adelikat a61ff53d9c Change IEmulator.GetCpuFlagsAndRegisters() to a Dictionary, fix a warning, throw NotImplemented exceptions in cores that don't implement this method rather than returning an empty list. Start Debugger UI User Controls 2014-04-19 22:23:13 +00:00
adelikat 1669fd7755 Start an Atari 2600 debugger dialog 2014-04-19 19:01:13 +00:00
adelikat dba0d25a5c Atari 2600 - some progress on the AR mapper (Super charger), but still doesn't work 2014-04-19 16:28:03 +00:00
adelikat d1e7ed9d91 Atari 2600 - start Supercharger emulation (and mapper AR) 2014-04-16 01:18:38 +00:00
adelikat 285a7241b9 On the Rom Details dialog, if the Rom is unknown and the Core supports a GenerateGameDbEntry() method, show the button. When clicked it will add the Game Db entry to gamedb_user.txt, from which point it will be a known rom to the user. Implement this method on Atari 2600. Still TODO: allow them to pick the status instead of assuming "Good" 2014-04-15 22:10:39 +00:00
adelikat 2cbb914b9e silly formatting fix from last commit 2014-04-13 18:30:41 +00:00
adelikat 7a6994eb80 Atari 2600 - some progress on mapper 4A50, but it still doesn't work 2014-04-13 18:09:29 +00:00
adelikat 3f3f607e60 Atari 2600 - some ground work for the AR mapper, doesn't yet do anything 2014-04-12 17:52:49 +00:00
adelikat ccae8ce914 Atari - failed attempt to implement mapper CM (Compumate) 2014-04-12 16:36:30 +00:00
adelikat 4f65d78335 Atari 2600 - some ground work for DPC+, but still not implemented 2014-04-12 04:11:52 +00:00
adelikat a1cb4b151e Atari 2600 - implement mapper FE 2014-04-12 03:48:18 +00:00
adelikat 50c8e05d65 Atari 2600 - Boulder Dash Intro Tune demo apparently doesn't run on 3E, it runs on 4K so change the gamedb entry, a fix to 3E. Given that no game actually works that is written for this mapper, I'm calling this one. 2014-04-12 02:54:17 +00:00
adelikat a329ef846d Atari 2600 - fix mapper E7 for games that used ram (Burger Time, He-Man) 2014-04-11 22:00:16 +00:00
adelikat c4b6d8656f Atari 2600 - cart ram for mapper E7 2014-04-11 14:14:46 +00:00
adelikat 74cc3aad14 Atari 2600 - implement the Cart Ram memory domain 2014-04-11 01:31:10 +00:00
adelikat 2200b05dc2 Atari 2600 - DPC memory domain (added when using the DPC mapper) 2014-04-11 01:05:50 +00:00
adelikat c16e469e22 Atari 2600 - DPC - do savestates, reset, disposing, and some small todos 2014-04-10 12:46:45 +00:00
beirich 860483934f 2600: 'cycle accurate' audio, fix pitfall2 music 2014-04-10 03:30:46 +00:00
adelikat 2834e80dfa Atari 2600 - implement SB mapper (Super banking) 2014-04-09 02:17:45 +00:00
adelikat 37139822ac Atari 2600 - slight fix to m3F, attempt to fix 3E, the mapper is still broken, I guess, the only Roms that use it are a Boulder Dash wip that is broken, and a Boulder Dash Intro Tune that seems to fail. 2014-04-09 01:57:45 +00:00
adelikat 296ce8fcfc oops 2014-04-08 00:57:56 +00:00
adelikat 5407d752b1 Atari 2600 - DPC mapper - clean up elapsed cycle monitoring, results now match up with stella at least 2014-04-08 00:24:28 +00:00
adelikat 703f1a3355 Atari 2600 - Fix some warnings 2014-04-07 22:06:38 +00:00
adelikat ac27f4451c Atari 2600 - major progress on the DPC mapper, Pitfall II is now playable, but the mapper sound channel is still quite bad, also lacks things like savestate support 2014-04-07 01:33:45 +00:00
adelikat 0a22275b59 Oops 2014-04-06 23:30:45 +00:00
adelikat 391be49081 Atari 2600 - support multi-cart mappers, toggling games is done via Hard Reset 2014-04-06 23:25:59 +00:00
adelikat 8a239b53bc Atari 2600 - implement hard reset, also fix a few missing Dispose calls in some mappers that utilize ram 2014-04-06 22:40:10 +00:00
adelikat 696affa5be Atari 2600 - a bit mroe reorg 2014-04-05 15:04:03 +00:00
adelikat a230210565 Atari 2600 - another round of cleanup and reorg 2014-04-05 14:57:26 +00:00
adelikat 27daa82464 Atari 2600 - a round of code cleanup and check in some files I neglected to in the past few commits, remove oldTIA.cs 2014-04-05 14:13:05 +00:00
adelikat 43d58e3441 Atari 2600 - Oops, dispose stuff 2014-04-05 02:42:23 +00:00
adelikat a2b2651330 Atari 2600 - Implement mapper FA2 2014-04-05 00:58:43 +00:00
adelikat cf1a50c195 Atari 2600 - Implement mapper EFSC 2014-04-05 00:35:08 +00:00
adelikat 842645b9ab Atari 2600 - oops, fix a bug in mapper heuristics 2014-04-05 00:31:13 +00:00
adelikat 2d65937440 Atari 2600 - implement mapper F4SC 2014-04-05 00:03:45 +00:00
adelikat 3d1e6ca830 Atari 2600 - implement mapper F6SC, and slight fix to F8SC (uncomment read of write port emulation) 2014-04-04 23:49:03 +00:00
adelikat d79067c33c Atari 2600 - implement mapper F8SC. Fix a potential crash in mappers AR and FA 2014-04-04 21:16:43 +00:00
adelikat af0cd39742 Atari 2600 - add in unimplemented mappers and throw not implemented exceptions. Throw these on a 4IN1 and F8SC instead of wrongly using F8. Implement heuristics for Rom detection when rom isn't found in gamedb. Heuristics logic based on Stella findings. 2014-04-04 19:46:41 +00:00
adelikat 58732cf627 Atari 2600 - implement homebrew mapper 0840 2014-04-03 21:25:02 +00:00
adelikat a946beb40f oops #2 2014-04-03 21:02:27 +00:00
adelikat 03a2de19f1 remove unused mapper file, not sure what this was ever supposed to be, or how it managed to survive this long 2014-04-03 20:05:24 +00:00
adelikat 4c13ff6731 Atari 2600 - some formatting and clean up of mapper classes 2014-04-03 19:58:47 +00:00
adelikat 12cdedf299 Atari 2600 - throw NotImplemented exceptions on mappers that exist but haven't been built, and clean up some mapper code 2014-04-02 21:27:14 +00:00
adelikat 5db777afcf Atari 2600 - more mapper defaults based on file size 2014-04-02 21:07:55 +00:00
goyuken 7a9eb9f6cb change some memory domains to exception out on out of range access instead of silent masking 2014-02-26 20:18:48 +00:00
goyuken 6c2aad545f 7800: fix PAL color display 2014-02-21 17:00:06 +00:00
goyuken eed290cb8d 2600: try 2K or 4K mappers for unknown roms where applicable 2014-02-08 04:59:45 +00:00
adelikat 82dd0d324d Atari 2600 - Remove a todo, ReadConsoleSwitches should in fact read the lag flag (and currenlty does already), justification: it is implied that any input on "lag frame" should have no impact on a movie 2014-02-04 15:55:05 +00:00
adelikat 7393f132ab Move CPUs from Emulation.Common to Emulation.Cores 2014-01-22 01:14:36 +00:00
goyuken a005767463 random cleanup 2013-12-27 04:41:50 +00:00
goyuken 82c82b681a connect a26 to the new settings setup. unlike all those before it, the menus have changed a bit, but all of the functionality is still there. in movie 2.0, a26 will store the two difficulty switches and the bw\color switch as syncsettings 2013-12-24 20:50:53 +00:00
goyuken d37796ab1c more new core config framework; this time GAEMBOY 2013-12-23 02:51:41 +00:00
goyuken bd205f47dc update our newtonsoft json.net to version 5.0 release 8. this fixes up abstract class handling so that the CoreSettings can work correctly.
tweak Binding, RecentFiles, and PathEntry to work with the new serializer.  on updating to this revision, you should be able to keep all config.ini settings except for hotkey bindings, path layouts, and recent files list.
start implementation of new CoreSettings and CoreSyncSettings.  at the moment, it's only partially done for NES.
2013-12-22 00:44:39 +00:00
goyuken e95d7b8cd7 fix the mess i made yesterday with IEmuLoadHelper (I did not know at the time, but it's 99% the same as the existing ICoreFileProvider) 2013-12-10 17:58:12 +00:00
goyuken 2a0217e06c refactor a bit of firmware loading code to get some slop out of MainForm.LoadRom() 2013-12-09 20:36:24 +00:00
adelikat ce7743808f Lua - event.oninputpoll - support Atari 7800 2013-11-17 00:06:21 +00:00
adelikat 7e45f13282 Change project name BizHawk.Emulation to BizHawk.Emulation.Cores 2013-11-15 14:05:47 +00:00