/*--------------------------------------------------------------------------- * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. See also the license.txt file for * additional informations. *--------------------------------------------------------------------------- * tlcs900h.h: interface for the tlcs900h class. */ #ifndef AFX_TLCS900H_H #define AFX_TLCS900H_H #ifdef __cplusplus extern "C" { #endif extern unsigned char *rasterY; extern unsigned int gen_regsPC, gen_regsSR; extern unsigned char F2; extern unsigned int gen_regsXWA0, gen_regsXBC0, gen_regsXDE0, gen_regsXHL0, gen_regsXWA1, gen_regsXBC1, gen_regsXDE1, gen_regsXHL1, gen_regsXWA2, gen_regsXBC2, gen_regsXDE2, gen_regsXHL2, gen_regsXWA3, gen_regsXBC3, gen_regsXDE3, gen_regsXHL3, gen_regsXIX, gen_regsXIY, gen_regsXIZ, gen_regsXSP, gen_regsSP, gen_regsXSSP, gen_regsXNSP; extern int timer0, timer1, timer2, timer3; extern unsigned char ldcRegs[64]; extern int setting_ngp_language; #define XWA0 0 #define XBC0 1 #define XDE0 2 #define XHL0 3 #define XWA1 4 #define XBC1 5 #define XDE1 6 #define XHL1 7 #define XWA2 8 #define XBC2 9 #define XDE2 10 #define XHL2 11 #define XWA3 12 #define XBC3 13 #define XDE3 14 #define XHL3 15 #define XIX 16 #define XIY 17 #define XIZ 18 #define XSP 19 #define PC 20 #define SR 21 #define XSSP 22 #define XNSP 23 /* initialize registers, etc.. */ void tlcs_init(void); void tlcs_reinit(void); /* execute interrupt */ void tlcs_interrupt_wrapper(int irq); void ngpc_run(void); #ifdef AUTO_FRAMESKIP void tlcs_execute(int cycles, int skipFrames); /* skipFrames=how many frames to skip for each frame rendered */ #else void tlcs_execute(int cycles); #endif #ifdef __cplusplus } #endif #endif /* !defined(AFX_TLCS900H_H) */