/* * ============================================================================ * Title: Jean-Luc Project support * Author: J. Zbiciak * ============================================================================ */ #ifndef JLPSG_H_ #define JLPSG_H_ typedef struct jlp_t { periph_t periph; /* Yup, this is a peripheral. :-) */ uint_16 *pc; /* Pointer to CPU Program Counter */ uint_16 *ram; /* 16-bit RAM */ int sleep; /* Emulate "busy" time after a slot write. */ uint_16 *sg_img; /* Save game image */ FILE *sg_file; /* Save-game filename */ } jlp_t; /* Approximate numbers for a 256K board and ~20Kw game. */ #define JLP_SG_START (224) #define JLP_SG_END (1359) #define JLP_SG_BYTES ((JLP_SG_END - JLP_SG_START + 1) * 192) /* ======================================================================== */ /* JLP_INIT -- Sets up JLP support */ /* ======================================================================== */ int jlp_init ( jlp_t *jlp, /* Structure to initialize. */ const char *fname, /* Save-game file */ uint_16 *pc /* Pointer to CPU program counter */ ); #endif /* ======================================================================== */ /* 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. */ /* */ /* This program is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */ /* General Public License for more details. */ /* */ /* You should have received a copy of the GNU General Public License */ /* along with this program; if not, write to the Free Software */ /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* ======================================================================== */ /* Copyright (c) 2009-+Inf, Joseph Zbiciak */ /* ======================================================================== */