Commit Graph

199 Commits

Author SHA1 Message Date
nattthebear 5e3cdba869 Finally dump some old movie 1.0 cruft 2017-08-11 19:45:45 -04:00
adelikat cd289c474e memorycallbacks with domains - Phase 2 - change api to Call methods and refactor accordingly, everything should behave as it was before the refactor at this point. No cores have yet to be implemented with domains other than the default bus they already had 2017-08-03 18:08:07 -05:00
adelikat 04ce66c397 phase 1 of changing memory callback api to specify domain - require cores to specify which domains are available and have the domain passed in when creating callbacks. Still todo - cores need to pass in domain name on CallReads/Writes/Executes methods 2017-08-01 22:05:17 -05:00
adelikat c6e0e9fa57 Rename CoreAttributes to CoreAttribute as to not be a bad person 2017-07-12 14:10:55 -05:00
nattthebear c4eeb84ee8 mgba: syste bus
fixes #861
2017-06-15 19:34:15 -04:00
nattthebear cf723b5133 add new build of mgba 0.6-ish 2017-06-11 20:10:37 -04:00
adelikat 1dae91e6a8 clean up core constructors - consistent parameter casing, and put them at the top of the class 2017-05-05 19:05:36 -05:00
adelikat 59139ab266 Spell out Numerator and Denominator 2017-05-05 11:25:38 -05:00
adelikat 62a13d961d Move VsyncNum and VsyncDen out of CoreComm and into IVideoProvider 2017-05-05 11:21:37 -05:00
adelikat 698c6741ae Refactor IEmulator and remove the IController property, instead pass it as a paramter to the FrameAdvance() method 2017-05-01 20:09:11 -05:00
adelikat ded1c2d7b7 Break off BoardName from IEmulator into a separate IBoardInfo service 2017-04-30 21:01:54 -05:00
adelikat 83124a8d20 Fix VerifiedDisassembler to not expose the internal cpu property 2017-04-27 12:02:08 -05:00
adelikat 15a25bdd87 cleanup MGBAHawk code 2017-04-25 12:00:50 -05:00
adelikat 167ed41a51 Break up MGBAHawk into separate files 2017-04-25 11:42:03 -05:00
adelikat 010c04f421 bleh, forgot to check this in 2017-04-25 11:17:35 -05:00
adelikat e72aceccdc Misc VBANext cleanups 2017-04-25 11:14:24 -05:00
adelikat 54ebe75d2b remove the obsolete MemoryDomain.FromIntPtr method 2017-04-24 13:47:40 -05:00
nattthebear 432cbc54d7 it annoyed me 2017-04-23 13:25:29 -04:00
nattthebear 13423ac461 woops 2017-04-23 13:25:12 -04:00
nattthebear 72808f01bb remove all meteor and garbo stuff completely. These two GBA cores were never up to par, really. 2017-04-23 13:21:35 -04:00
nattthebear d1ca433a93 mgba: registers 2017-04-22 21:59:55 -04:00
J.D. Purcell b2a28339d1 Use 'nameof' operator. 2017-04-10 08:36:42 -04: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 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 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
nattthebear da2d15341f mgba: Fix some of the audio channel disables not working. Fix audio channel disables not being restored on reboot core 2016-12-03 23:01:14 -05:00
nattthebear f67cb3c64f Issue #735: Add sound channel toggling on mgba 2016-11-27 17:33:05 -05:00
nattthebear cee88d6bdc Update mgba metadata to indicate that we are on version 0.5 2016-11-06 13:30:19 -05:00
nattthebear 0ae8bf13f7 GBA memory domain fix 2016-11-06 10:32:04 -05:00
nattthebear c3be2879bc Save state stuff mgba blah I'm bad 2016-10-25 18:14:20 -04:00
nattthebear c3973773e6 mgba: savestate redux 2016-10-22 20:49:42 -04:00
nattthebear b8b9201604 mgbahawk: savestates 2016-10-22 18:09:28 -04:00
nattthebear 36fb1e3d57 mgba 0.5: fix saveram. fix skip bios + hard reset. fix bg/obj disable. 2016-10-17 13:01:52 -04:00
nattthebear a76226fcc2 update mgba, saveram still broken 2016-10-08 11:58:52 -04:00
nattthebear 5bd9a67f62 mgba 0.5 rough in 2016-09-17 16:29:25 -04:00
nattthebear 9b46a6cb3f mgba: Game overrides from gamedb 2016-09-17 11:31:06 -04:00
nattthebear 24df291143 Update mgba to 0.4.1 2016-09-17 09:51:38 -04:00
feos 76eaea3619 tracer unification for cores: spacing, headers, etc 2016-08-16 01:39:26 +03:00
feos 888d7fed6a tracer: set some padding 2016-08-14 22:59:07 +03:00
zeromus 75173f2596 add sram memdomain to mgba 2016-04-18 21:46:27 -05:00
zeromus 41dd8741d5 dang it, do a better job adding sram memdomain to vbanext 2016-04-18 21:46:16 -05:00
zeromus 5ed2e46982 add SRAM memdomain to vbanext 2016-04-18 20:44:30 -05:00
nattthebear 111648cf98 Break a bunch of memory domain stuff with pointless refactoring 2016-04-13 19:50:06 -04:00
zeromus 776e696e09 mgba - fix bug where hard reset caused memorydomains to get permanently wrecked 2016-03-27 16:35:34 -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
nattthebear 01dc05375d mgba - more state changes. WIP 2016-02-21 16:14:43 -05:00
nattthebear f66c625b8b Revert "Issue 441 - mgba - store saveram in savestates. No compatibility is kept with existing savestates"
This reverts commit a1f3b3d735.
2016-02-21 15:37:39 -05:00
nattthebear a1f3b3d735 Issue 441 - mgba - store saveram in savestates. No compatibility is kept with existing savestates 2016-02-21 10:11:38 -05:00
nattthebear 88467d2fbf mgba layer toggle 2016-02-21 08:54:00 -05:00
nattthebear 86a8c1dfd4 Slight changes to update mgba to 0.4.0 2016-02-07 12:51:00 -05:00
zeromus 2fa6b26225 fix #563 [GBA] [mGBA] Combined WRAM not working 2016-02-01 17:38:25 -06:00
scrimpeh ef1bc65ce6 IInputPollable - Make IsLagFrame settable 2016-01-26 11:34:42 +01:00
adelikat 443862effd mgba - version info and url 2015-10-08 20:36:20 -04:00
feos daed8bb3cf let mGBA core go. 2015-10-06 21:55:57 +03:00
zeromus 3c0e46b5b2 mgba - add "Combined WRAM" memory domain. fixes #507 2015-09-28 23:54:44 -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
adelikat 3541c9e975 Make the lag counter settable, and expose this functionality in lua 2015-07-09 13:05:30 -04:00
goyuken 9a02a5cac0 mgba: RTC and syncsettings 2015-06-13 18:01:26 +00:00
adelikat 5bcdfb5991 IInputPollable - remove the set on LagCount as it is not needed 2015-06-11 01:23:14 +00:00
goyuken b2ead68c4d lag frame in mgba 2015-06-10 01:19:09 +00:00
goyuken 68506d6ea1 some infrastructure for RTC, tilt sensor, vampier slayer contrl in mgba 2015-06-06 22:23:42 +00:00
goyuken f57c3b86f0 support reading the old vba-next savwerams in the mgba core 2015-06-06 17:42:47 +00:00
goyuken f5c8bece3a satesvates for mgba 2015-06-06 17:34:19 +00:00
goyuken 4a5f87387c saverams in mgba, maybe 2015-06-06 12:49:31 +00:00
goyuken f458c93e56 support hex editor and gpu viewer for mgba 2015-06-05 00:43:41 +00:00
goyuken 43c7483ef6 hook up mGBA bios 2015-06-05 00:12:12 +00:00
goyuken 6d5d720d55 mgba: input support 2015-06-04 23:30:24 +00:00
goyuken f30dec819d bl;ah blah 2015-06-04 22:47:51 +00:00
goyuken 66f0bf15c0 Fix up some junkus in appleii core init, and add stub for mGBA 2015-06-04 02:04:42 +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
mathew1800 abbee1672e Specify the parameter for argument-based exceptions. Correct the parameter names of others.
Common mistake.
2015-02-10 04:19:34 +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
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 ede452700c VBANext - separate into separate files 2015-01-17 20:48:31 +00:00
adelikat 4f956779fe Meteor - break up into separate files 2015-01-17 19:32:45 +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
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
adelikat 17b4782474 Change "BUS" to "System Bus" in both GBA cores, and the bsnes core, don't account for "BUS" in the CheatDomain property 2015-01-13 00:01:25 +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
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
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
goyuken 09f9d50f46 IDisassemblable changes. can't compile right now, so might not work 2014-12-14 17:17:22 +00:00
adelikat 1cd49d5b54 GBA GPU Viewer - convert to using EmulatorServices 2014-12-13 23:46:12 +00:00
goyuken c6ed49c067 some disassembler stuff 2014-12-13 21:49:15 +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 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 1f9b4d23fe lets try something that compiles 2014-12-05 02:39:42 +00:00
goyuken a7ad7e20e9 clean up vbanext core 2014-12-05 02:27:39 +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 a91de9ad9c Move TraceHeader out of CoreComm and into ITracer and TraceBuffer 2014-12-05 00:10:48 +00:00
adelikat 309088211c Move TraceBuffer from CoreComm to IDebugable and refactor accordingly 2014-12-05 00:05:40 +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 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