mirror of
https://github.com/mist64/perfect6502.git
synced 2024-12-27 20:29:43 +00:00
23 lines
813 B
C
23 lines
813 B
C
#ifndef INCLUDED_FROM_PERFECT6502_C
|
|
#define state_t void
|
|
#endif
|
|
|
|
extern state_t *initAndResetChip();
|
|
extern void resetChip(state_t *state);
|
|
extern void step(state_t *state);
|
|
extern void chipStatus(state_t *state);
|
|
extern unsigned short readPC(state_t *state);
|
|
extern unsigned char readA(state_t *state);
|
|
extern unsigned char readX(state_t *state);
|
|
extern unsigned char readY(state_t *state);
|
|
extern unsigned char readSP(state_t *state);
|
|
extern unsigned char readP(state_t *state);
|
|
extern unsigned int readRW(state_t *state);
|
|
extern unsigned short readAddressBus(state_t *state);
|
|
//extern void writeDataBus(unsigned char);
|
|
extern unsigned char readDataBus(state_t *state);
|
|
extern unsigned char readIR(state_t *state);
|
|
|
|
extern unsigned char memory[65536];
|
|
extern unsigned int cycle;
|
|
extern unsigned int transistors; |