puce6502/puce6502.h

52 lines
1.9 KiB
C
Raw Normal View History

2020-08-08 20:27:09 +00:00
/*
Puce6502 - MOS 6502 cpu emulator
Last modified 1st of August 2020
Copyright (c) 2018 Arthur Ferreira (arthur.ferreira2@gmail.com)
2021-06-24 22:08:30 +00:00
This version has been modified for reinette II plus, a french Apple II plus
emulator using SDL2 (https://github.com/ArthurFerreira2/reinette-II-plus).
Please download the latest version from
https://github.com/ArthurFerreira2/puce6502
2020-08-08 20:27:09 +00:00
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
2021-06-24 22:08:30 +00:00
#ifndef _PUCE6502_H
#define _PUCE6502_H
2020-08-08 20:27:09 +00:00
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
2021-06-24 22:08:30 +00:00
typedef enum { false, true } bool;
2020-08-08 20:27:09 +00:00
2021-06-24 22:08:30 +00:00
extern unsigned long long int ticks;
2020-08-08 20:27:09 +00:00
2021-06-24 22:08:30 +00:00
uint16_t puce6502Exec(unsigned long long int cycleCount);
void puce6502RST();
void puce6502IRQ();
void puce6502NMI();
2020-08-08 20:27:09 +00:00
2021-06-24 22:08:30 +00:00
// void printRegs();
// void dasm(uint16_t address);
// void setPC(uint16_t address);
// uint16_t getPC();
2020-08-08 20:27:09 +00:00
#endif