******* Z80 ******* The Portable Zilog Z80 Emulator Version 1.1 (15-11-1996) Copyright (C) Marat Fayzullin 1994,1995,1996 Marcel de Kogel 1996 This package contains a portable Z80 emulator. It is a modified version of Marat Fayzullin's Z80 emulator, mainly optimised for GCC-x86 (DJGPP, Linux, FreeBSD), but other systems will profit from the improvements made as well. The original code can be downloaded from Marat's home page at http://www.freeflight.com/fms/CPUs/ You can use in your own applications, as long as proper credit is given, no profit is made and both Marat and I are notified. To use the code, check the system dependent part of Z80.h, write your own memory and I/O functions, which are declared in Z80IO.h, write your own Interrupt() and InterruptsEnabled() functions, which should return either IGNORE_INT to ignore the interrupt call, NMI_INT to generate an NMI or an interrupt address to proceed with the interrupt, write your own Patch() function which gets called when ED FE occurs and can be used to emulate disk/ tape access etc., call ResetZ80() to reset all registers to their initial values, initialise IPeriod to the number of T-states per interrupt and finally call Z80() to start emulation Please send your comments and bug reports to m.dekogel@student.utwente.nl