Skip to content

Commit

Permalink
Version history.
Browse files Browse the repository at this point in the history
  • Loading branch information
redcode committed Sep 19, 2024
1 parent d650e5f commit 4b1b11d
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 91 deletions.
96 changes: 49 additions & 47 deletions HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -17,92 +17,94 @@ Changes:
8. Added detailed documentation.
9. Added Pascal binding, courtesy of Zoran Vučenović.
10. Added tests.
11. Added public macros for checking the library version, working with flags,
11. Renamed the macros `CPU_Z80_DEPENDENCIES_H` and `CPU_Z80_STATIC` to
`Z80_EXTERNAL_HEADER` and `Z80_STATIC`, respectively.
12. Added public macros for checking the library version, working with flags,
accessing the 16-bit registers and other purposes.
12. Added the ability to end the emulation loop immediately, and the `z80_break`
13. Added the ability to end the emulation loop immediately, and the `z80_break`
function.
13. Added the `z80_execute` function for running a simplified emulation without
14. Added the `z80_execute` function for running a simplified emulation without
RESET and interrupts.
14. Added the `z80_refresh_address` function for getting the refresh address of
the current M1 cycle.
15. Added the `z80_in_cycle` and `z80_out_cycle` functions for obtaining the
clock cycle at which the I/O M-cycle begins, relative to the start of the
instruction.
16. Renamed the `z80_reset` function to `z80_instant_reset`.
17. Added optional emulation of the special RESET, and the `z80_special_reset`
16. Added the `z80_refresh_address` function for getting the refresh address of
the current M1 cycle.
17. Renamed the `z80_reset` function to `z80_instant_reset`.
18. Added optional emulation of the special RESET, and the `z80_special_reset`
function.
18. Added the `Z80::fetch_opcode` and `Z80::fetch` callbacks for performing
opcode fetch operations and memory read operations on instruction data
respectively.
19. Added the `Z80::nop` callback for performing disregarded opcode fetch
19. Added the `Z80::fetch_opcode` and `Z80::fetch` callbacks for performing,
respectively, opcode fetch operations and memory read operations on
instruction data.
20. Added the `Z80::nop` callback for performing disregarded opcode fetch
operations during internal NOP M-cycles.
20. Added emulation of the NMI acknowledge M-cycle through the new `Z80::nmia`
21. Added emulation of the NMI acknowledge M-cycle through the new `Z80::nmia`
callback.
21. Added emulation of the INT acknowledge M-cycle through the new `Z80::inta`
22. Added emulation of the INT acknowledge M-cycle through the new `Z80::inta`
callback, which replaces `Z80::int_data`.
22. Added optional full emulation of the interrupt mode 0, along with the new
23. Added optional full emulation of the interrupt mode 0, along with the new
`Z80::int_fetch` callback for performing bus read operations on instruction
data. If not enabled at compile-time, the old simplified emulation is built,
which supports only the most typical instructions.
23. Added four callbacks for notifying the execution of important instructions:
24. Added four callbacks for notifying the execution of important instructions:
`Z80::ld_i_a`, `Z80::ld_r_a`, `Z80::reti` and `Z80::retn`.
24. Added hooking functionality through the `ld h,h` instruction and the new
25. Added hooking functionality through the `ld h,h` instruction and the new
`Z80::hook` callback.
25. Added the `Z80::illegal` callback for delegating the emulation of illegal
26. Added the `Z80::illegal` callback for delegating the emulation of illegal
instructions.
26. Added emulation options that can be configured at runtime.
27. Removed `Z80::state`. Replaced with individual members for the registers,
27. Added emulation options that can be configured at runtime.
28. Removed `Z80::state`. Replaced with individual members for the registers,
the interrupt enable flip-flops and the interrupt mode.
28. Removed the superfluous EI flag. The previous opcode is checked instead,
29. Removed the superfluous EI flag. The previous opcode is checked instead,
which is faster and makes the `Z80` object smaller.
29. Removed all module-related stuff.
30. Added emulation of the additional flag changes performed during the extra 5
30. Removed all module-related stuff.
31. Added emulation of the additional flag changes performed during the extra 5
clock cycles of the following instructions: `ldir`, `lddr`, `cpir`, `cpdr`,
`inir`, `indr`, `otir` and `otdr`.
31. Added emulation of the interrupt acceptance deferral that occurs during the
32. Added emulation of the interrupt acceptance deferral that occurs during the
`reti` and `retn` instructions.
32. Added MEMPTR emulation. The `bit N,(hl)` instruction now produces a correct
33. Added MEMPTR emulation. The `bit N,(hl)` instruction now produces a correct
value of F.
33. Added optional emulation of Q. If enabled at compile-time, the `ccf` and
34. Added optional emulation of Q. If enabled at compile-time, the `ccf` and
`scf` instructions will produce a correct value of F.
34. Added emulation of the `out (c),255` instruction (Zilog Z80 CMOS).
35. Added optional emulation of the bug affecting the `ld a,{i|r}` instructions
35. Added emulation of the `out (c),255` instruction (Zilog Z80 CMOS).
36. Added optional emulation of the bug affecting the `ld a,{i|r}` instructions
(Zilog Z80 NMOS). If enabled at compile-time and configured at runtime, the
P/V flag will be reset if an INT is accepted during the execution of these
instructions.
36. Increased granularity. The emulator can now stop directly after fetching a
37. Increased granularity. The emulator can now stop directly after fetching a
prefix DDh or FDh if it runs out of clock cycles. This also works during the
INT response in mode 0.
37. Reimplemented the HALT state. The emulation should now be fully accurate.
38. Reimplemented the HALT state. The emulation should now be fully accurate.
HALTskip optimization is also supported.
38. Fixed a bug in the `sll` instruction.
39. Fixed a bug in the `INX` and `OUTX` macros affecting the S and N flags.
40. Fixed a bug in the `OUTX` macro affecting the MSByte of the port number.
41. Fixed the clock cycles of the `dec XY` and `in (c)` instructions.
42. Fixed the `read_16` function so that the order of the memory read operations
39. Fixed a bug in the `sll` instruction.
40. Fixed a bug in the `INX` and `OUTX` macros affecting the S and N flags.
41. Fixed a bug in the `OUTX` macro affecting the MSByte of the port number.
42. Fixed the clock cycles of the `dec XY` and `in (c)` instructions.
43. Fixed the `read_16` function so that the order of the memory read operations
is not determined by the order in which the compiler evaluates expressions.
43. Fixed the order in which the memory write operations are performed when the
44. Fixed the order in which the memory write operations are performed when the
SP register is involved. This affects the NMI response, the INT response in
modes 1 and 2, and the following instructions: `ex (sp),{hl|XY}`, `push TT`,
`push XY`, `call WORD`, `call Z,WORD` and `rst N`.
44. Fixed the handling of illegal instructions to avoid stack overflows in long
45. Fixed the handling of illegal instructions to avoid stack overflows in long
sequences of DDh/FDh prefixes.
45. Fixed several implicit conversions to avoid warnings about loss of sign and
46. Fixed several implicit conversions to avoid warnings about loss of sign and
precision.
46. Fixed some bitwise operations to avoid undefined behavior and arithmetic
47. Fixed some bitwise operations to avoid undefined behavior and arithmetic
right shifts on signed integers.
47. Fixed violations of the C standard in several identifiers.
48. Renamed the 8-bit register lists: X/Y to J/K; J/K and P/Q to O/P.
49. Replaced all P/V overflow computation functions with a single, faster macro.
50. Replaced all register resolution functions with macros.
51. Replaced all `ld {J,K|O,P}` instructions that have the same destination and
48. Fixed violations of the C standard in several identifiers.
49. Renamed the 8-bit register lists: X/Y to J/K; J/K and P/Q to O/P.
50. Replaced all P/V overflow computation functions with a single, faster macro.
51. Replaced all register resolution functions with macros.
52. Replaced all `ld {J,K|O,P}` instructions that have the same destination and
source register with NOPs. In addition, the "illegal" forms of the following
instructions are now executed without using the illegal instruction handler:
`ld O,P`, `ld O,BYTE`, `U [a,]P` and `V O`.
52. Optimizations in flag computation and condition evaluation.
53. New source code comments and improvements to existing ones.
54. Improved code aesthetics.
55. Other improvements, optimizations and minor changes.
53. Optimizations in flag computation and condition evaluation.
54. New source code comments and improvements to existing ones.
55. Improved code aesthetics.
56. Other improvements, optimizations and minor changes.


Z80 v0.1 (2018-11-10)
Expand Down
Loading

0 comments on commit 4b1b11d

Please sign in to comment.