This is maincpu.h in view mode; [Download] [Up]
/* * maincpu.h - Emulation of the main 6510 processor. * * Written by * Ettore Perazzoli (ettore@comm2000.it) * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * 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., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. * */ #ifndef _MAINCPU_H #define _MAINCPU_H #include "types.h" #include "mem.h" #include "mos6510.h" #include "6510core.h" #include "mon.h" /* ------------------------------------------------------------------------- */ /* Information about the last opcode executed by the CPU. */ extern int last_opcode_info; /* The lowest 8 bits are the opcode number. */ #define OPINFO_NUMBER_MASK (last_opcode_info & 0xff) /* If this is set to 1, the opcode has delayed interrupts by one more cycle (this happens with conditional jumps when jump is taken. */ #define OPINFO_DELAYS_INTERRUPT_MASK (last_opcode_info & 0x100) /* The VIC-II emulation needs this ugly hack. */ #define EXTERN_PC extern unsigned int reg_pc; extern mos6510_regs_t maincpu_regs; extern monitor_interface_t maincpu_monitor_interface; extern int rmw_flag; extern CLOCK clk; /* ------------------------------------------------------------------------- */ extern CLOCK _maincpu_opcode_write_cycles[]; /* Return the number of write accesses in the last opcode emulated. */ inline static CLOCK maincpu_num_write_cycles(void) { return _maincpu_opcode_write_cycles[OPINFO_NUMBER(last_opcode_info)]; } extern void mainloop(ADDRESS start_address); #endif /* !defined(_MAINCPU_H) */
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.