summaryrefslogtreecommitdiff
path: root/m68k_core_x86.c
AgeCommit message (Collapse)Author
2016-05-10Fix bug in 68K movep.l when the destination is a register mapped to a host ↵Michael Pavone
register
2016-04-30Fix 68K interrupt handling some more. Fatal Rewind is working again.Michael Pavone
2016-04-27Implement privelege violation exceptionsMichael Pavone
2016-04-27Implemented IR and undefined bits of info word for address error exception ↵Michael Pavone
frames
2016-04-26Initial stab at implementing address error exceptions. Need to fill in the ↵Michael Pavone
value of IR, undefined bits of last stack frame word and properly deal with address errors that occur during exception processing.
2016-04-26Implement illegal instruction trapMichael Pavone
2016-04-24Fix interrupt latency from STOP instruction status reg changes. Fix modified ↵Michael Pavone
code patching when non-standard aliases are used. This fixes the demo MDEM's First
2016-04-24Half assed, prefetch based open bus value emulation. Gets BlastEm up to ↵Michael Pavone
119/122 in VDP FIFO Testing
2016-04-24Fix order of writes for move.l with a predec destinationMichael Pavone
2016-04-23Properly imlement btst with an immediate destination. Fixes a crash in NHL 95.Michael Pavone
2015-12-02Fix problem in 68K debugger caused by stack alignment changeMichael Pavone
2015-11-27Fix a few lingering stack alignment rework bugsMichael Pavone
2015-11-25Partially working change to do proper stack alignment rather than doing a ↵Michael Pavone
lame alignment check when calling a C compile dfunction. 68K core seems okay, but Z80 is busted.
2015-11-14Prevent the current interrupt number from being changed while interrupt is ↵Michael Pavone
being processed. This fixes a bug in Sonic 2 split screen that showed up when interrupt timing was adjusted
2015-11-13It is now possible to switch back and forth between the menu ROM and the gameMichael Pavone
2015-11-08Initial work for allowing loading a ROM from menuMichael Pavone
2015-11-01Update timing and order of steps in interrupt processing to match latest ↵Michael Pavone
measurements
2015-10-31Implement interrupt latency. Fixes Sesame Street: Counting Cafe and gives ↵Michael Pavone
accurate results in my test ROM
2015-10-29Implement TRAPVMichael Pavone
2015-10-28Implement TASMichael Pavone
2015-10-21Implemented nbcdMichael Pavone
2015-10-19Fix for abcd/sbcd. Hopefully got it 100% right this time.Michael Pavone
2015-07-25Use a new fatal_error function instead of calling fprintf and exit for fatal ↵Michael Pavone
errors. This new function more gracefully handles the case in which BlastEm was not started from a terminal or disconnected from ther terminal (Windows).
2015-06-28More clang warning cleanupMichael Pavone
2015-06-22Fix negative offsets in calc_areg_displaceMichael Pavone
2015-05-25Fix crash bug in 32-bit build for certain secnarios with bcd instructionsMichael Pavone
2015-05-25Fix div instruction when dest is d0 in 32-bit buildMichael Pavone
2015-05-23Eliminate runtime.S/runtime_32.S.Michael Pavone
2015-05-22Don't attempt to translate or map code at odd addresses. This fixes a bug ↵Michael Pavone
that shows up when playing College Footbal USA 96
2015-05-11Fixed a missed call to do_sync when updating SR in 68K coreMichael Pavone
2015-01-14Removed hardcoded assumptions in M68K core about which parts of the memory ↵Michael Pavone
map are RAM
2015-01-08A couple more indentation fixesMichael Pavone
2015-01-08Moved m68k_save_result to m68k_core.cMichael Pavone
2015-01-08Moved translate_m68k_rte and translate_m68k_reset to m68k_core.cMichael Pavone
2015-01-08Fix indentation that presumably got messed up in a mergeMichael Pavone
2015-01-04MergeMichael Pavone
2015-01-03All cycle counters are now based off the master clock. This seems to have ↵Michael Pavone
messed up Z80 interrupt timing (music in Sonic 2 is too slow for instance), but things are generally working
2015-01-02Added functions to gen_x86 for saving and restoring callee save registers to ↵Michael Pavone
better abstract over ABI differences between x86 and x86-64
2015-01-01Use call_args and call_args_abi in Z80 coreMichael Pavone
2015-01-01Added 2 new functions to gen_x86.c for handling passing args according to ↵Michael Pavone
the C abi of the host system and adapted the code in m68k_core_x86.c to use that instead of doing everything by hand
2015-01-01Fix some issues with 68K instruction retranslationMichael Pavone
2015-01-01Remove some of the hard coded assumptions about the memory map from the CPU ↵Michael Pavone
cores
2014-12-29Fix handling of code writes for Z80 core. This seems to get things close to ↵Michael Pavone
being back to where they were before the big refactor that broke the Z80 core. Some problems remain. Notably the sound driver in Sonic 2 is still quite broken.
2014-12-28Removed bcd_add and bcd_sub from runtime.S and generated the logic inline ↵Michael Pavone
with the rest of abcd and sbcd translation. Fixed some edge cases and undefined flag behavior in the process
2014-12-27Fix divide by zero exception return address when div instruction is bigger ↵Michael Pavone
than 1 word
2014-12-27Decrement address register after fetching source in move with -(ax) dest to ↵Michael Pavone
avoid bug when src is the dst addres reg
2014-12-26Fix a bug in ori to SR that was swapping USP and SSP inappropriatelyMichael Pavone
2014-12-26Fix a few bugs introduced in the Z80 core from the adjustments to fit with ↵Michael Pavone
the code gen refactor
2014-12-26Set the byte_swap flag in the M68K core so gen_mem_fun correctly inserts xor ↵Michael Pavone
instructions for byte access functions
2014-12-14WIP effort to update z80 core for code gen changesMichael Pavone