summaryrefslogtreecommitdiff
path: root/m68k_to_x86.c
AgeCommit message (Collapse)Author
2014-03-02Initial stab at separating the generic parts of the 68K core from the ↵Michael Pavone
host-cpu specific parts.
2014-03-02Rename x86_68k_options and m68k_to_x86.h to m68k_options and m68k_core.h ↵Michael Pavone
respectively
2014-03-02Refactor gen_x86 to use an interface more like gen_arm and to remove the ↵Michael Pavone
need for the caller to decide whether an 8-bit or 32-bit displacement is needed in the rdisp functions. Update m68k_to_x86 to use the new version of the gen_x86 functions and do some minor refactoring there in the process
2014-02-24Use a typedef code_ptr in place of uint8_t * in 68K core to better support ↵Mike Pavone
host instruction sets with different instruction word sizes. Make x86_68k_options contain a cpu_options so that gen_mem_fun can eventually be shared with the Z80 core.
2014-02-24Rename x86_backend.h and x86_backend.c to backend.h and backend.c respectivelyMike Pavone
2014-02-24Start work on refactoring some of the backend code to allow more sharing ↵Michael Pavone
between M68K and Z80 cores and possibly also between x86 and the ARM backend when it exists
2014-02-19Apart from the Z80 core, BlastEm now supports 32-bit x86Michael Pavone
2014-02-18Initial work on the x86-32 targetMichael Pavone
2014-02-18Generate get_sr, set_sr and set_ccr at runtime so they can respect the ↵Michael Pavone
flag_regs setting
2014-02-17Make references to flags in the M68K core respect the flag_regs options ↵Michael Pavone
array so that flags can be moved out of registers for the 32-bit port. set/get ccr/sr still need to be updated to support this, but everything else should be done.
2014-02-16Generate handle_cycle_limit at runtime so it can use the generated ↵Michael Pavone
save/load_context functions. Since the hand written versions of save/load are no longer used they have been removed.
2014-02-16Generate native_addr and native_addr_and_sync at runtime so they can use the ↵Michael Pavone
generated save/load_context functions
2014-02-16Generate retrans_stub at runtime so it can use the generated ↵Michael Pavone
save/load_context functions
2014-02-16Removed old debug print function that is no longer neededMichael Pavone
2014-02-15Get rid of the native stack option the 68K core. Trying to make it work with ↵Michael Pavone
code that messes with the stack is not worth the trouble.
2014-02-15Generate m68k_start_context at runtime so it can use the generated ↵Michael Pavone
load_context and save_context
2014-02-14Generate save_context and load_context functions at runtimeMichael Pavone
2014-02-09Properly handle jmp instructions in the debugger next commandMike Pavone
2013-10-03Follow amd64 ABI stack alignment requirements in places it matters so we can ↵Mike Pavone
call sprintf with floating point arguments without crashing
2013-09-10Added copyright notice to source files and added GPL license text in COPYINGMike Pavone
2013-09-08Fix bit instruction timingMike Pavone
2013-07-20Fix performance regression from stop instruction workMike Pavone
2013-07-19Implement 68K stop instructionMike Pavone
2013-07-17Fix sign flag on swapMike Pavone
2013-07-17Fix carry flag on rotate when the register provided rotate bit count is ↵Mike Pavone
exactly 32
2013-07-16Fix 68K test harnessMike Pavone
2013-06-29Add support for loading GST format savestatesMike Pavone
2013-06-25Use the registers that were freed up by the memory map function changesMike Pavone
2013-05-21Finish SRAM support for games without a SEGA mapperMike Pavone
2013-05-21Support for SRAM with SEGA mapper. Half-finished support for SRAM without ↵Mike Pavone
SEGA mapper.
2013-05-21Refactor code gen for read/write functionsMike Pavone
2013-05-21m68k_trap is now replaced with a generated one so it can call the generated ↵Mike Pavone
memory acccess functions. The old static memory access functions have been removed from runtime.S
2013-05-21Generate handle_cycle_limit_int at runtime so it can refer to the runtime ↵Mike Pavone
generated memory map functions
2013-05-18Mostly working runtime generation of memory map read/write functionsMike Pavone
2013-05-12Fix retrun address calculation for CHK exceptionsMike Pavone
2013-05-11Don't update interrupt mask on non-interrupt exceptionsMike Pavone
2013-05-11Port instruction retranslation improvements from Z80 core to M68K coreMike Pavone
2013-04-25Get Z80 core working for simple programsMike Pavone
2013-04-21Fix overflow detection in divs. Fix negative immediate source for divsMike Pavone
2013-04-21Implement CHK instruction (not fully tested).Mike Pavone
2013-04-21Fixed a couple bugs in roxl/roxr. X flag wasn't being saved properly and ↵Mike Pavone
rotates of more than 31 bits were messed up as the X flag was being thrown away between the first 31 bits of rotate and the rest.
2013-04-20Fix muls with a negative immediate source.Mike Pavone
2013-04-20Fix modulo on bit operations with a memory destinationMike Pavone
2013-04-20Fix overflow flag behavior for lsl/lsr/asrMike Pavone
2013-04-20Fix autoincrement on a7 when used as a destination in a byte sized instructionMike Pavone
2013-04-19Fix some bugs related to sign-extension of address registers and ↵Mike Pavone
pre-decrement amount for a7 when used as a source.
2013-04-16Make reset trigger debug exit to make it easier to test the same cases in ↵Mike Pavone
blastem and musashi. Fix asl #1 overflow flag.
2013-04-16Small bit of cleanupMike Pavone
2013-01-27Fix movem reg to mem for certain addressing modesMike Pavone
2013-01-26Flag fixes for div, negx and notMike Pavone