summaryrefslogtreecommitdiff
path: root/z80_to_x86.c
AgeCommit message (Collapse)Author
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-26Fix a few bugs introduced in the Z80 core from the adjustments to fit with ↵Michael Pavone
the code gen refactor
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-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-14WIP effort to update z80 core for code gen changesMichael Pavone
2014-12-03Temporarily comment out code to translate Z80 instructions in place as in ↵Michael Pavone
rare cases it can stomp the next instruction if a branch goes from a short from to a long one
2014-06-21Fix Z80 interruptsMichael Pavone
2014-06-20Added some preliminary support for interpreting Z80 code from non-RAM addressesMichael Pavone
2014-06-19Properly handle Z80 breakpoints on self-modifying code and setting Z80 ↵Michael Pavone
breakpoints before the Z80 program has been loaded
2014-06-19Slight cleanup of vint handling on the Z80Michael Pavone
2014-01-27Fix timing of certain ld and jp instructions in the Z80 coreMichael Pavone
2014-01-06The local clone on my laptop got messed up and some changes had not been ↵Michael Pavone
pushed. This commit represents the status of the working copy from that clone. It unfortunately contains some changes that I did not intend to commit yet, but this seems like the best option at the moment.
2013-09-10Added copyright notice to source files and added GPL license text in COPYINGMike Pavone
2013-06-29Add support for loading GST format savestatesMike Pavone
2013-06-24Fix access to int_enable_cycle in EIMike Pavone
2013-06-15Fix DIMike Pavone
2013-06-14Fix adc and sbcMike Pavone
2013-06-13Fix LDIRMike Pavone
2013-06-11Bail out on attempt to run code from bank area until it is properly supportedMike Pavone
2013-06-08Use a call instruction to figure out the original native address when ↵Mike Pavone
retranslating so that it does not get lost when the byte transforms from a instruction word to extension word
2013-06-06Removed out of date TODOMike Pavone
2013-06-06Fix LDD and LDDRMike Pavone
2013-06-05Fix dec and inc when the operand is in memoryMike Pavone
2013-06-05Fix LDIMike Pavone
2013-06-04Fix set/res when the operand is in memoryMike Pavone
2013-06-02Fix cycle count for inc and decMike Pavone
2013-06-02Bunch of Z80 debugger improvementsMike Pavone
2013-05-31Fix P condition in Z80 coreMike Pavone
2013-05-31Partial implementation of Z80 debuggerMike Pavone
2013-05-29Fix push AFMike Pavone
2013-05-27Fix sizeof expression passed to malloc in z80_init to avoid a minor memory errorMike Pavone
2013-05-14Some Z80 interrupt fixesMike Pavone
2013-05-09Fix return address for RSTMike Pavone
2013-05-09Show absolute addresses for JR, JRCC and DJNZ in Z80 disassemblerMike Pavone
2013-05-09Fix terminal instruction detection in disassemblerMike Pavone
2013-05-09Properly handle instructions that use boty IYH and IYLMike Pavone
2013-05-09Set the N flag to the correct value for DEC instructionsMike Pavone
2013-05-09Implement carry flag for shift instructions. Implement weird behavior for ↵Mike Pavone
bit 0 of SLL. Fix missing break statement in SRL.
2013-05-09Correctly set the N flag for SBCMike Pavone
2013-05-09Deal with the fact that there's no 8-bit version of the BT family of ↵Mike Pavone
instructions on x86
2013-05-08Complete flag behavior for Z80 BIT instructionMike Pavone
2013-05-08Properly handle negative displacements in Z80 coreMike Pavone
2013-05-08Contrary to the official documenation, OR and AND also set PV based on ↵Mike Pavone
parity instead of overflow