summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-03Made the Z80 core more contained by refactoring some code in blastem.c into ↵Michael Pavone
z80_to_x86.c
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-02In theory, the Z80 core should work on 32-bit builds now; however, I suspect ↵Michael Pavone
there is some code that cannot deal with most of the Z80 registers not having a native register so more work will be needed
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-02Use SZ_PTR instead of SZ_Q in Z80 core for 32-bit compatMichael Pavone
2015-01-02Sync Z80 when taking an interrupt so that int_cycle gets updatedMichael Pavone
2015-01-01Remove dedicated registers for Z80 bank reg and Z80 bank pointer as they are ↵Michael Pavone
no longer used
2015-01-01Adjust 68K sync cycle when mclk_target gets adjustedMichael Pavone
2015-01-01Add the 3 cycle delay back in to Z80 bank area accessMichael Pavone
2015-01-01Minor Z80 core cleanupMichael Pavone
2015-01-01Use call_args and call_args_abi inside gen_mem_funMichael Pavone
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-01Avoid calling atexit(SDL_Quit) until after OpenGL initialization to avoid a ↵Michael Pavone
segfault on exit when using fglrx
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-30MergeMichael Pavone
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-29Added support for JR and JRcc in Z80 test generatorMichael Pavone
2014-12-29Added support for JPcc in Z80 test generatorMichael Pavone
2014-12-29Added support for JP in Z80 test generatorMichael Pavone
2014-12-29Add support for Z80 access to VDP via bank areaMichael Pavone
2014-12-29Update .hgignoreMichael Pavone
2014-12-29Fix flag mask for m68k notMichael Pavone
2014-12-28Fix opsize for sbcd in 68K instruction decoder. This fixes the timer bug in ↵Michael Pavone
Strider 2
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-27Uncomment 68000 testcasesMichael Pavone
2014-12-27Don't use out of bounds displacements in indexed mode even if our targeted ↵Michael Pavone
address is out of RAM range
2014-12-26Fix memory map flags in ztestrunMichael Pavone
2014-12-26Fix mask for bank area in Z80 memory mapMichael Pavone
2014-12-26Fix a bug in ori to SR that was swapping USP and SSP inappropriatelyMichael Pavone
2014-12-26Get Z80 banked access sort of working againMichael Pavone
2014-12-26Fix reg-indirect mode for RBP/R13Michael Pavone
2014-12-26Set int_cycle to CYCLE_NEVER in sync_z80 so that the interrupt routine isn't ↵Michael Pavone
taken inappropriately now that the kludge in handle_cycle_limit_int has been removed
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-26Add Z80 test runner Python script I wrote a while back and forgot to commitMichael Pavone
2014-12-26Update .hgignoreMichael Pavone
2014-12-26Fix an off-by-one error in a branch destination in the generation of ↵Michael Pavone
handle_cycle_limit for the Z80
2014-12-26Update code->cur before calling z80_get_address_trans in ↵Michael Pavone
z80_retranslate_inst to avoid any newly translated instructions from being placed in the "buffer zone". Save the current value of the code_info struct for placing the final jmp instruction in the correct place
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-26Add a couple of missing checks for the byte_swap and address_size parameters ↵Michael Pavone
in gen_mem_fun
2014-12-26Add in missing generated Z80 helper functions. Fix a small bug in Z80_HALT. ↵Michael Pavone
Fix generation of save and load context for Z80
2014-12-22Z80 core is sort of working againMichael Pavone
2014-12-17Get rest of emulator compiling again with Z80 core enabledMichael Pavone
2014-12-17Get Z80 core back into compileable stateMichael Pavone
2014-12-16Fix flags for rra, rrca, rla and rlca. Fix timing for rr, rrc, rl and rlc ↵Michael Pavone
when using IX or IY. Fix access to I and R registers (R still needs to be made 7-bit though). Fix flags for ld a, i. The fix for access to I fixes PCM playback in Titan Overdrive and music playback in Crackdown.
2014-12-16Set the busy flag after a YM-2612 address writeMichael Pavone
2014-12-14Added HV counter test ROM sourceMichael Pavone