1 /***************************************************************************
3 * ZXEmuT -- ZX Spectrum Emulator with Tcl scripting
5 * Copyright (C) 2012-2020 Ketmar Dark <ketmar@ketmar.no-ip.org>
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, version 3 of the License ONLY.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **************************************************************************/
20 #ifndef ZXEMUT_Z80EXEC_H
21 #define ZXEMUT_Z80EXEC_H
25 #include <libspectrum.h>
27 #include "../libzymosis/zymosis.h"
28 #include "emucommon.h"
32 ////////////////////////////////////////////////////////////////////////////////
33 extern int z80_was_frame_end
; // can't rely on tstates counter due to RZX
35 extern int tsmark_active
;
36 extern int tsmark_frames
;
37 extern int tsmark_tstart
;
39 //extern void z80FrameEnd (void); // not public anymore
41 // return # of executed ticks
42 // will call z80FrameEnd() on end of frame and initiate interrupt after it
43 // will do ++z80_was_frame_end if z80FrameEnd() was called
44 extern int z80Step (void);
46 extern int isAutofireKempston (void); // !0: bit to set
47 extern int isAutofireKeyboard (void); // !0: lo byte: bit to reset (0x01), hi byte: port number (0-7)