Commit Graph

373 Commits

Author SHA1 Message Date
adelikat 1ad6e7a95f oops 2017-04-24 13:56:42 -05:00
adelikat 1cb6289e13 Remove the obsolete MemoryDomain.FromIntPtrSwap16() method 2017-04-24 13:52:52 -05:00
adelikat 54ebe75d2b remove the obsolete MemoryDomain.FromIntPtr method 2017-04-24 13:47:40 -05:00
adelikat 44064d86d2 sms - nitpick code cleanup 2017-04-23 13:28:15 -05:00
J.D. Purcell b53502eed8 Spaces -> tabs. 2017-04-15 16:37:30 -04:00
J.D. Purcell ed3bf0e62b Fix mixed line endings. 2017-04-15 15:53:02 -04:00
nattthebear f8830652de Revert "GPGX remove an exception for debugging"
This reverts commit 96ac5d1122.
2017-04-15 08:09:08 -04:00
alyosha-tas 96ac5d1122 GPGX remove an exception for debugging
The core can handle this case just fine so there doesn't appear to be a need for it anyway
2017-04-14 21:44:15 -04:00
adelikat f1cc6eab36 Fix a warning 2017-03-20 10:58:13 -05:00
zeromus 22f9179ee7 fix #807 (GPGX double size option) 2017-02-25 02:57:04 -06:00
zeromus 4e2892d852 gpgx now width-doubles to match height-doubled hi-res video 2017-02-18 16:09:08 -06:00
adelikat ab1a22bf31 add TotalExecutedCycles as an IDebuggable property, and implement it in cores with the information readily available (and throw NotImplementedExecptions in the remaining). wire the property up to lua with emu.totalexecutedcycles(). Stil todo - wire it up to the Debugger gui 2017-01-09 19:23:05 -06:00
adelikat eda79c2212 Make an interface for CodeDataLog, and move CodeDataLog to Base Implementations 2016-12-16 11:33:02 -06:00
adelikat 691632f188 More IAsyncSoundProvider and related classes to BizHawk.Emulation.Cores and make them internal, since they are implementation details, and they are deprecrated and not intended to be used in future cores. 2016-12-16 08:50:05 -06:00
adelikat 72a59087b5 Use the IController indexing property less in preparation for removing it from the interface. Replaced with its more explicity counter-part .IsPressed() 2016-12-14 12:42:15 -06:00
adelikat aaed8e67d5 NullController - remove a bunch of methods that were originally part of IController but no longer are, and clean up the code a bit 2016-12-14 09:16:54 -06:00
adelikat b465eaa470 Remove two sound refactor todo comments 2016-12-11 12:27:11 -06:00
adelikat b73a500d6b Major sound provider refactor. Create a unified interface ISoundProvider, that is an IEmulator service and break it off of IEmulator. IAsyncSoundProvider was kept as a shim for now, for legacy cores that were inherintly async. 2016-12-11 11:15:00 -06:00
adelikat b697110098 Rename ISoundProvider to IAsyncSoundProvider to more accurately describe what the service does 2016-12-09 10:24:43 -06:00
alyosha-tas b2920834b1 Fix Shining Force games ( #600 and #335 )
Fixes SRAM selection and Interrupt control
2016-11-03 20:49:19 -04:00
feos af78aedc02 as always 2016-08-24 07:26:42 +03:00
feos 6e0b8e2784 yabause tracer 2016-08-24 00:05:17 +03:00
adelikat cac0f533db Fix SMS memory domains 2016-08-22 15:07:57 -04:00
Ben Eirich 7f23cd80f1 SMS overscan display
Conflicts:
	BizHawk.Client.EmuHawk/MainForm.Designer.cs
2016-08-18 18:14:58 +03:00
feos 76eaea3619 tracer unification for cores: spacing, headers, etc 2016-08-16 01:39:26 +03:00
feos 8e92c5fd17 gpgx: move to normal tracing method too
CallbackBasedTraceBuffer seems deprecated
2016-08-14 22:29:42 +03:00
zeromus 6d32112c9e fix gpgx, n64 trace loggers 2016-08-13 16:34:01 -05:00
feos 801dac3c0d GPGX.ISettable: output and input hex values 2016-08-14 00:20:01 +03:00
feos 35282ba577 gpgx32: flipped namespaces, added excplicit core picking
diff is messed up after folder renaming, but no file was changed except for namespaces and waterbox's core name
2016-08-10 22:27:46 +03:00
feos 7b26a6b573 gpgx32: make it compile
also build a dll
2016-08-09 21:13:42 +03:00
feos d970ccf544 gpgx32: dropped Dynamic 2016-08-09 20:43:15 +03:00
feos ca0d7ce92d new namespace 2016-08-09 20:16:24 +03:00
feos 14fd7d52c2 check in files 2016-08-09 20:03:23 +03:00
nattthebear 111648cf98 Break a bunch of memory domain stuff with pointless refactoring 2016-04-13 19:50:06 -04:00
zeromus 59658340e7 change description of genesis pad320 option 2016-03-27 14:33:12 -05:00
nattthebear 5876c60571 gpgx waterbox - dynamically allocate some sega CD memory areas to reduce state size. raw core is now about 800K in normal mode; 2MB in sega CD mode 2016-03-27 12:00:50 -04:00
nattthebear b4735502a5 gpgx waterbox: fix a few misc bugs in elfrunner, and fix a few misc bugs in the core so that Virtua Racing now works 2016-03-26 14:44:44 -04:00
nattthebear 0e9a34a074 gpgx - fully connect lockable swappable elfrunner. core should theoretically be multi-instance safe now 2016-03-25 22:19:18 -04:00
nattthebear 92e708d011 gpgx waterbox: move bg_pattern_cache to alloc_invisible 2016-03-23 21:10:18 -04:00
nattthebear 06f9d78452 gpgx: trim savestate size by moving some things to the sealed heap 2016-03-23 20:52:49 -04:00
nattthebear 9f173389a9 gpgx: entirely disable writes to the "MD CART" memory domain, since it's not supported 2016-03-23 20:17:02 -04:00
nattthebear b06908e5d4 gpgx waterbox: get sega cd working 2016-03-23 20:11:47 -04:00
nattthebear 8136aa0f03 Add the basics of multiple memory arenas to elfrunner. With a bit of tweaking, gpgx core states are now 3.5MB (and could get smaller) 2016-03-23 19:45:02 -04:00
nattthebear 7acbaffafd ElfRunner: Some internal refactoring in preparation for multiple memory arenas 2016-03-23 17:27:35 -04:00
nattthebear 4bd73a626f Add Monitor support to BizInvoker. Monitors are called right before (Enter) and right after (Exit) each interop method call. Possible applications include AWE mutex+mapping, and cothread no-GC regions. If you ask for an invoker without monitor, this commit adds no overhead because the code isn't generated. 2016-03-22 20:17:28 -04:00
nattthebear 146442cd69 some stuff for waterbox gpgx, not finished 2016-03-21 21:43:56 -04:00
zeromus 68f16a3a79 dont crash when shutting down a saturn core started in non-gl mode 2016-03-13 19:50:25 -05:00
nattthebear 3bc6fe1b04 Add the elf stuff back to solution (doesn't do anything, don't use, ugly and embarassing, etc). Switch gpgx to use bizinvoker and slash a few hacks there. Bizinvoker - add support for forwarded attributes in Compatibility mode ([Out], [In]), and support enum, ref enum, and enum[]. Misc cleanup. 2016-03-10 22:00:52 -05:00
adelikat 5cd11d0bb4 Move Sound component objects from Emulation.Common to Emulation.Cores so they live in the same assembly as the calling cores 2016-03-04 08:37:09 -05:00
feos 9e3d57341f gpgx: custom backdrop color. 2016-02-28 20:52:54 +03:00
adelikat 4460055da3 SMS - break up services into separate files 2016-02-28 12:01:12 -05:00
adelikat d477bc1fb6 nice Trace header for SMS, and Coleco 2016-02-28 08:07:02 -05:00
feos 196f896679 gpgx: sprite layer toggle 2016-02-28 01:59:51 +03:00
feos c04d813b77 gpgx: change lowpass range to ushort to make at least some sense to user. 2016-02-28 01:12:36 +03:00
nattthebear c623933af1 gpgx: some audio settings and stuff. presumably fixes issue 584 2016-02-27 14:39:01 -05:00
feos f590ed9e19 tracer: gpgx and qn header formats, include cpu name. 2016-02-27 20:05:58 +03:00
adelikat f9c9994161 Refactor GPGX trace logger - make a CallbackBasedTraceBuffer abstract class in Base Implementations with an abstract method CreateTrace, and inherit it as a GPGXTraceBuffer. 2016-02-23 21:58:40 -05:00
feos 7abac10164 genesis disasm/tracer: replace IR reg with raw bytes, drop separate PC reg. 2016-02-22 15:02:59 +03:00
feos e9225089d6 gpgx tracer: pretend we have flags, drop some useless regs.
makes it fit into the limit for me.
2016-02-22 12:16:54 +03:00
zeromus 95bc69b448 some prepwork for opengl texture ID importing (skip rendertarget resolve on OGL display method) but there are still problems and it can't be enabled yet 2016-02-22 00:23:20 -06:00
zeromus 0eb6e83384 glcontexts can specify versions and clean themselves up 2016-02-21 17:19:34 -06:00
adelikat c9387221a0 GPGX tracer - Trim() registers 2016-02-21 18:03:11 -05:00
adelikat 691c95c861 GPGX.ITraceable - remove some now irrelevant comments 2016-02-21 17:44:27 -05:00
adelikat f5e679fa0d Refactor ITraceable to work on TraceInfo objects that separate Disassembly and Register information. Make Tracelogger two columns. 2016-02-21 17:34:42 -05:00
feos 0cba536348 tracer: compromise pending 2016-02-21 22:49:01 +03:00
adelikat 47ac3d79bd GPGX tracing - a more reasonable spacing between disassembly and register values 2016-02-21 14:10:12 -05:00
nattthebear c77de0e8af stuff 2016-02-21 14:00:11 -05:00
adelikat 61c50e1d7c GPGX - clean up trace log entries 2016-02-21 13:36:55 -05:00
feos 66dea10b0b tracer: print prettily for gpgx.
todo: fix its regs that start with ffffffff, fix failing to print to window.
2016-02-21 20:34:56 +03:00
adelikat 553545f268 GPGX Tracer - add some dependencies, this is sloppy, will clean up later 2016-02-21 11:55:16 -05:00
adelikat 4137da7e22 GPGX - make M68K Bus always the system bus 2016-02-21 11:15:13 -05:00
adelikat e5b6921c7d GPGX - trace logging support, the output is very bad, needs to be cleaned up 2016-02-21 11:13:27 -05:00
adelikat e9d4a4448e GPGX - Break up services into separate files 2016-02-21 09:08:41 -05:00
feos 63e7a07e0d debugger: return our own string format for genesis. 2016-02-21 16:04:39 +03:00
adelikat f59038fb90 GPGX - disassembler support 2016-02-20 09:35:34 -05:00
nattthebear e903273474 add "M68K BUS" and "S68K BUS" domains to gpgx core 2016-02-20 08:35:56 -05:00
scrimpeh ef1bc65ce6 IInputPollable - Make IsLagFrame settable 2016-01-26 11:34:42 +01:00
zeromus 802fb54fad gpgx - support up to 32MB roms (fix #543 probably) 2015-12-08 19:49:31 -06:00
Hathor86 f70a2c8c6c Merge from TASVideo 2015-11-01 22:01:19 +01:00
zeromus 8497c25414 CDL - finish SMS memory maps, mostly 2015-11-01 10:44:36 -06:00
zeromus 642f965685 CDL - preliminary SMS support (only one mapper) 2015-10-30 00:00:57 -05:00
zeromus 70e0954f28 CDL - major refactor complete. muuuuch better. 2015-10-28 03:51:53 -05:00
zeromus 35b6d8c1d6 CDL - support GPGX. still need to make enable toggle, to win back speed 2015-10-27 16:31:43 -05:00
zeromus de85a6fdef gpgx - handle virtualwidth/virtualheight more modernly and add option to pad screen out to prevent window resizes 2015-09-17 16:49:30 -05:00
adelikat ba21484ddd add IRegionable as an emulator service to indicate NTSC vs PAL, etc. Refactor cores that conveyed this information to use this service, fixed cheaty reflection to grab this info to use the service instead, marked some cores as region not applicable where it made sense to me (I'm sure I'm wrong in some cases) 2015-08-05 20:12:09 -04:00
zeromus a0e623ef1b disc - some unneeded code cleanup 2015-07-18 23:53:12 -05:00
zeromus eab8d6ac19 fix saturn disc booting 2015-07-18 11:42:05 -05:00
nattthebear 5bae8df811 Fix Seger CD with disk system changes 2015-07-17 17:20:05 -04:00
zeromus a7ae3c0cfc Merge branch 'discsys'
Conflicts:
	BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj
	BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGXDynamic.cs
	libmupen64plus/mupen64plus-win32-deps
2015-07-11 14:01:44 -05:00
zeromus 691531421a more discsys reorg 2015-07-11 13:46:57 -05:00
zeromus cc31331bc0 refactor discstructure mightily 2015-07-11 13:46:55 -05:00
zeromus 6dcaa3ca04 apply major discsystem refactorings to emulator cores and client. lots of undone things, most notably generalized RawTOCEntries -> TOCRaw -> Structure synthesis outside of the individual format/api disc loaders. IOW there's no DiscStructure right now. Probably lots of bugs too. 2015-07-11 13:46:36 -05:00
adelikat 3541c9e975 Make the lag counter settable, and expose this functionality in lua 2015-07-09 13:05:30 -04:00
adelikat 0a6fb3dce2 remove the GPGX trace logger since it isn't wired up and we don't want it to display if it doesn't work 2015-07-05 09:13:44 -04:00
nattthebear 98ad258966 fix dll paths in GPGXDynamic.cs 2015-06-25 17:24:19 -04:00
zeromus f75b06ce75 dont use gpgxdynamic for genesis games til its done 2015-06-25 14:14:42 -05:00
nattthebear 77d3369d26 Some stuff for loading elves. Not yet all finished. 2015-06-23 21:35:34 -04:00
zeromus 80164c1fba import WIP discsys work from svn 2015-06-23 13:57:11 -05:00
adelikat 5bcdfb5991 IInputPollable - remove the set on LagCount as it is not needed 2015-06-11 01:23:14 +00:00
goyuken adc3e96ca8 iemulator single instance attribute. to find out about: PSX, Apple2 2015-03-03 00:23:50 +00:00
adelikat 36f4eff0f6 add ByteSize to MemoryDomain with a default of 1, set it to not 1 on appropriate domains (I probably missed some, or got some wrong). Have RamSearch use that instead of SystemInfo, remove ByteSize from SystemInfo since it is no longer needed 2015-02-22 15:19:38 +00:00
adelikat 8c12c5cbff do read/writes in the z80 core itself, refactor sms and ti83 to not use them on their end of the callback, fixes sms only having read/write callbacks on a few mappers 2015-01-24 20:57:37 +00:00
adelikat cdd0716420 wire up memory execute callbacks to SMS and TI83 2015-01-24 20:36:36 +00:00
adelikat ac442130ae Refactor IMemoryDomains and MemoryDomains to have setters for MainMemory and SystemBus, so a core can customize instead of using a one size fits all assumption. Remove constructor that sets main memory and refactor accordingly 2015-01-24 16:02:28 +00:00
goyuken af451143bf a bit of memory domain cleanup 2015-01-21 17:36:22 +00:00
adelikat 872b7b3668 ditto for a file for Genesis.cs 2015-01-20 00:39:44 +00:00
adelikat 91ffc17aae Refacotor MemoryDomain.Size to be long instead of int, still some small todos, but it compiles and seems to work 2015-01-18 15:25:47 +00:00
adelikat 2ae19abf70 Rename some files called Input.cs into SMS.Input, etc to be more informative and better match our naming standards 2015-01-16 02:01:27 +00:00
goyuken 82fcd0bc5e refactor IVideoProvider into a service. uses in mainform and friends are still hacky 2015-01-14 22:37:37 +00:00
adelikat fbdb29b64c refactor IMemorydomains to be a domain list instead of having a domain property, refactor cores to register an IMemoryDomains instead of being one 2015-01-14 21:55:48 +00:00
adelikat d62ba4e2b4 Change IMemoryDomains to have an IMemoryDomainList instead of a MemoryDomainList, this is an incremental step into eventually having IMemoryDomains take over the properties of IMemoryDomainList, still todo: reduce the amount of needed functionality in IMemoryDomainList from old and not good code 2015-01-13 22:18:07 +00:00
goyuken d2b0579609 yabause: clean up memory domains slightly 2015-01-13 21:46:28 +00:00
adelikat a23cac57d5 Yabause - break up emulator services into separate files 2015-01-13 19:55:36 +00:00
adelikat 10e56a4a4f Genesis.cs and Meteor.cs - remove IDebuggable from these since they aren't being used, and remove not implemented methods, left implemented ones, if we ever use these the IDebuggable designation can be easily added back 2015-01-13 19:30:50 +00:00
goyuken 98b12af680 sms: disassemble 2015-01-05 21:19:38 +00:00
adelikat 0f2197cec1 Break off ITracer from IDebuggable, rename to ITraceable and make it an IEmulatorService, refactor things accordingly 2014-12-23 01:58:12 +00:00
adelikat ffdeb618f7 IDebugable - add a CanStep() method, and implement it in all IDebuggable implementations 2014-12-20 13:29:57 +00:00
adelikat a8116297a0 Rename Register to RegisterValue 2014-12-20 13:16:15 +00:00
goyuken 0c1e3eaa3b gpgx: fix regs 2014-12-20 03:48:01 +00:00
adelikat 7bebb66589 IDebuggable - refactor GetCpuFlagsAndRegisters to be IDictionary<string, Register> where Register is a value and a bitsize 2014-12-20 03:19:33 +00:00
goyuken f7cf7e1176 genesis, saturnus - dispose of CD 2014-12-19 21:53:43 +00:00
adelikat d08fb39cb8 Refactor IDebuggable StepInto/Over/Out methods into void Step(StepType type); 2014-12-15 22:19:10 +00:00
adelikat 725a8fb092 Add StepInto(), StepOver(), StepOut() to IDebuggable, have all cores implement it with unimplemented dummy functions 2014-12-14 18:58:16 +00:00
adelikat 9fc46f6764 mark cores that would not ever use IDriveLight, a bit silly, but it keeps the feature list clean and that's currently my only source of sanity with keeping up with what needs to be done 2014-12-12 01:58:12 +00:00
adelikat 08fb509a1a Add an IDriveLight Emulator service, and remove the CoreComm properties, and refactor accordingly 2014-12-12 01:49:54 +00:00
adelikat 2d1a43dc65 MemoryCallbackSystem - simplify by having a single Add method with a MemoryCallbackType parameter, and some simplifying of client code as a result 2014-12-07 18:53:56 +00:00
goyuken 92de864fab gpgx: cleanup 2014-12-05 02:31:36 +00:00
adelikat 0b84beec88 Move MemoryCallbackSystem from CoreComm to IDebuggable and refactor accordingly, Lua - tell the user when memory callbacks are not available for a given core 2014-12-05 01:56:45 +00:00
adelikat 309088211c Move TraceBuffer from CoreComm to IDebugable and refactor accordingly 2014-12-05 00:05:40 +00:00
zeromus 29b217b587 big discsystem refactors and preliminary CCD handling. not to be considered stable, but ill start supporting it. 2014-12-04 05:40:10 +00:00
adelikat d8a204572d Add an IServiceProvider interface and make it a property of IEmulator, the purpose of this provider is to provide IEmulatorServices upon request. Make BasicServiceProvider and have all cores use it for now. BasicServiceProvider will return the core itself if the core itself is the requested type. He will also be able to return nested types (code not finished). Wired this up to the HasSavestates extension method (a method that has minimal value now) as a proof of concept. 2014-12-04 03:38:30 +00:00
goyuken ef1ef251b6 gpgx: remove input todo 2014-12-04 03:31:26 +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 c7c038b7ca add more interfaces that got missed 2014-11-30 20:38:15 +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 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 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 1832894405 IDebuggable - GetCpuFlagsAndRegisters() - refactor to make it an IDictionary instead of Dictionary 2014-11-23 16:22:02 +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 9c30cea1dd fix issue 277 2014-10-07 22:20:17 +00:00
goyuken f9baa5e8e4 genesis: change initial frame 0 size of video display 2014-09-22 19:35:00 +00:00
goyuken 0d69b77507 issue 270 2014-09-22 14:24:11 +00:00
goyuken 489d69d20c genesis: make the vram memory domain properly invalidate the tile cache and the vdp viewer properly regenerate the tile cache. may or may not fix issue 265. 2014-09-19 23:56:08 +00:00
goyuken 184b4dcba9 change some cores to use filedata instead of romdata. NES handles headers internally, and others shouldn't ever have headers. 2014-09-12 15:39:04 +00:00
goyuken 93eb656eba gpgx: account for the fact that rom and ram are emulated with 16 bit swaps 2014-09-08 14:50:36 +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