Commit Graph

85 Commits

Author SHA1 Message Date
brandman211 aad9f05310 -Made it so that the log file only opens when you're actually logging. As a result, now can now at least switch games when you're not logging without getting errors. 2012-05-24 17:27:45 +00:00
brandman211 b29c9835ff -Separated the logging from the save state function.
-Made it so that the log only opens when logging is true and that the file closes upon destruction.
--Still, BizHawk says that it can't open the file again when I load a game again. This is because the emulator class gets recreated without deleting the original one every time you load a game.
---adelikat convinced me not to care about this.
-Fixed the initial state of the GB CPU:
--It was setting AF to 0x01, not A. This is effectively setting F to 0x01, which gets overwritten later anyway.
--Two BIOS flags were used in different places; merging them gets the PC to start in the right place.
-By fixing the initial state, most of the log now matches up.
--The only differences are the VBA has some repeated records (Where all of the registers, including PC, are the same as the previous record) whereas BizHawk doesn't.
--This very well might be an issue with how I'm logging it
--Alternatively, it could be some kind of lagging mechanism.
--I'm not sure which version is even correct...VBA is far from accruate.
--All in all, considering that the vast majority of the diff comes out as the same, I think I fixed the biggest CPU related bug. Will investigate more later.
2012-05-24 17:19:33 +00:00
beirich 2aef2b8606 68000: savestate support (text) 2012-05-21 04:44:36 +00:00
brandman211 9623f073eb Added a logging flag for GB using the SaveStateText function. 2012-05-20 06:43:41 +00:00
beirich d322c3c00f Fix some bugs responsible for out-of-bounds array access crash on ym2612 2012-04-29 01:40:38 +00:00
zeromus b1d62ed574 6502-add some opcodes not handled by the instruction tests, but which are cursorily covered by the instr_timing test, which now passes 2012-04-18 08:04:06 +00:00
zeromus 97b66a907f 6502-implement undocumented opcodes. pass all instruction tests 2012-04-18 05:22:58 +00:00
zeromus d3321f552f nes accuracy fixes
- pass more apu_test 4-jitter and 6-irq_flag_timing (necessary for timing on other tests)
- pass all cpu interrupt tests
- pass all sprite hit tests
2012-03-25 09:25:27 +00:00
zeromus 0cf6b0bcb7 switch atari 2600 to new 6502 core 2012-03-24 03:45:47 +00:00
pjgat09 5e65c7e977 TIA: Removed code for cosmic ark starfield (to be added back later, in a cleaner way). Changed the definition of a frame to start with the first scanline where VSYNC is disabled.
MOS6507: Fixed a copy-paste mistake with SBC instructions where it would remove another cycle. This fixes the screen bounce issue with pitfall.
2012-03-20 22:45:15 +00:00
zeromus 471b3ffb98 nes-fix soft reset functionality which had got broken when i upgraded the cpu core 2012-03-18 03:46:06 +00:00
zeromus 2b21ca7127 add new, more detailed 6502X cpu core, use it in the nes core as experiment. win almost all the speed back, pass some more tests. 2012-03-15 21:28:37 +00:00
zeromus 20a242c27e sync mos6502 from my last core generator checkin 2012-03-15 20:40:50 +00:00
pjgat09 32bc215c2e MOS6507: Hacked in BCD mode (borrowed from HuC6280). Pitfall's time counter now works correctly 2012-03-14 16:03:14 +00:00
beirich ca47082737 fix some PCE savestate desyncs 2012-03-12 00:14:44 +00:00
pjgat09 23cb513188 MOS6507: adjusted for instructions with a variable cycle count 2012-03-11 07:08:48 +00:00
pjgat09 84a11eacdf Switched over to using the 6507 to allow for some modifications to the CPU
MOS6507: now executes instructions on the last cycle. This corrects a syncing issue with the TIA
TIA: added ball data, partially implemented HMOVE, implemented VBLANK
2012-03-11 03:22:44 +00:00
beirich bc2e7995cc clone 6502 into 6507 2012-03-11 03:09:43 +00:00
taotao54321 c6fcda4418 6502 disassembler: print the destination address of branch, not the offset 2012-03-10 19:10:12 +00:00
taotao54321 9ab33cba8b 6502: partially implemented unofficial NOPs for "Puzznic (U)", "Puzznic (J)".
It is quite insufficient, but at least, we have to increment program counter appropriately.
For immediate addressing mode, it will be correct. For other addressing modes, I don't know whether they access memory, so further investigation will be needed.
2012-03-08 16:48:36 +00:00
taotao54321 26ff1a1bc5 cosmetics (indent for BRK opcode) 2012-03-08 15:33:52 +00:00
zeromus fd6ac896fc general cleanup.. remove a bunch of warnings.. improve log console system a bit.. add new icons for log console window.. remove old demo psx interop system and add new, simpler one, which isnt really tested yet but is way less annoying. 2012-02-24 20:38:35 +00:00
zeromus 5f66de57ec discohawk-add capability for searching for mis-extensioned files (broadens compatibility a bit) and autodetecting audio tracks based on extension where otherwise marked as binary. 2012-01-21 21:23:19 +00:00
beirich 51f2e28e1b 68000: fix ASL/ASR bug. Correct calculation of carry flag on subtracty operations 2011-10-30 15:35:14 +00:00
beirich b4793ec43c 68000: flags were not calculated in EXT 2011-10-27 04:15:16 +00:00
beirich 7ae6dfb534 68000: implement CMPM 2011-10-27 04:02:11 +00:00
beirich e96912dab0 68000: fix dumb MULS/MULU/DIVS/DIVU bug 2011-10-27 03:06:33 +00:00
beirich 5a5a424cc7 gen: some work on renderer. 2011-10-18 03:48:37 +00:00
beirich 0924ad07fd 68000: fix bug in CMP instruction >_> 2011-10-13 02:38:23 +00:00
beirich 7cedd71729 68000: fix bug with ADDQ.W/SUBQ.W operating on address registers 2011-10-12 02:20:03 +00:00
beirich 04b93b5b8b erp, disable insanely slow 68000 logging in the checked-in version 2011-10-11 04:03:06 +00:00
beirich 5b5c7c2890 68000: add MULU, MULS, DIVU, DIVS, MOVE to CCR
Some genesis source reorganization
2011-10-11 03:52:44 +00:00
beirich c787b70613 68000: implement EORI, ROXL, ROXR. Fix bugs on ADDI.L and SUBI.L. Complete MOVA timings. Work on An/PC Indexed addressing modes. 2011-10-09 19:15:31 +00:00
beirich 2d2bfae611 68000: implement NEG, fix bug on ANDI.L 2011-10-09 06:19:59 +00:00
beirich a1d8e9a209 68000: implement UNLK, RTE, TRAP, ANDI to SR, and EORI to SR 2011-10-09 03:51:57 +00:00
beirich 1c38de023e 68000: implement BSET, BCLR, BCHG, and NOT 2011-10-08 23:26:29 +00:00
beirich 18de3c9efc 68000: implement AND, OR, EOR. Fix interrupt bug. Fix bug with SR register 2011-10-08 19:57:22 +00:00
beirich ccea71e74d 68000: interrupt support.
gen: fire vertical interrupt, now some games show sega logo before immediately crashing!
2011-10-08 15:44:41 +00:00
beirich 18a3f3f87a 68000: more flags fixes, especially N flag calculation. derp. :| 2011-10-07 05:13:15 +00:00
beirich 575a8940cb 68000: more add/sub flags fixes 2011-10-07 04:21:20 +00:00
beirich f2ca21759c 68000 timings and flags fixes, some new opcode handlers 2011-10-07 03:04:48 +00:00
beirich 8fb8a35317 Genesis core revive! Get it back to where loading a genesis rom doesnt crash everything immediately 2011-10-01 17:06:25 +00:00
beirich cf8216ac46 pce-cd: basically working pretty okay! (fixed bug causing issues with extended ADPCM playback sequences) 2011-09-28 05:03:22 +00:00
beirich f3dc6068ce delete extra/external 68k core 2011-09-27 02:46:23 +00:00
beirich 9aa70c4fa9 Much improved pce-cd savestateyfulness
Cleanup and stateyness of SCSI bus still in progress; states not done yet
2011-09-16 04:59:59 +00:00
beirich a8aaaef45e [PCE] ADPCM playback more or less working correctly now
plus some cleanup
2011-09-05 17:45:01 +00:00
beirich 8571853828 still-in-the-midst-of-it turbocd check-in 2011-08-29 02:47:03 +00:00
beirich 0a5157d9a6 Extremely preliminary TurboCD support 2011-08-14 18:20:13 +00:00
beirich 91baebf8b2 [PCE] Implement ORA under T-Flag, fixes City Hunter 2011-07-23 21:24:43 +00:00
beirich 47def064fa significant PCE timing/compat improvements, still poking at a few things 2011-07-19 03:53:07 +00:00