1
0
mirror of https://github.com/mist64/perfect6502.git synced 2025-01-27 17:32:56 +00:00
perfect6502/perfect6502.h
Michael Steil 44cde717a1 cleanup
2014-12-01 13:29:08 +01:00

22 lines
788 B
C

#ifndef INCLUDED_FROM_PERFECT6502_C
#define state_t void
#endif
extern state_t *initAndResetChip();
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(state_t *state, 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;