Changes

Jump to: navigation, search

Z80

280 bytes added, 10 March
/* Internal state */
* EIP and IMP can be fusioned into a 3-bit internal state as there are only 7 possible values for the prefixes (none, ed, dd, fd, cb, ddcb, fdcb). Probably not a win though as it makes everything more confusing.
* IFF1 / IFF2 are called IEF1 / IEF2 (Interrupt Enable Flip-flops) in the Zilog eZ80 manual.
 
<br>
 
== Instruction Execution Sequence ==
 
For an instruction to fully execute, the Z80 goes through these key phases called M-cycles:
 
#Prefix and Opcode Fetch (M1)
#Operand Fetch (if needed)
#Memory Read / I/O Read (if needed)
#Execution
#Memory Write / I/O Write (if needed)
<br>
13,173
edits