2018-02-14 18:03:15 +00:00
|
|
|
#define RAMSIZE 128*1024
|
|
|
|
extern unsigned char ram[RAMSIZE];
|
|
|
|
extern unsigned char a,y,x;
|
2018-02-14 18:10:01 +00:00
|
|
|
extern unsigned short sp;
|
|
|
|
extern unsigned int n,z,c,v;
|
|
|
|
|
2018-02-14 18:03:15 +00:00
|
|
|
unsigned short y_indirect(unsigned char base, unsigned char y);
|
2018-02-14 18:10:01 +00:00
|
|
|
int init_6502(void);
|
|
|
|
void adc(int value);
|
|
|
|
void sbc(int value);
|
|
|
|
void cmp(int value);
|
|
|
|
void pha(void);
|
|
|
|
void pla(void);
|
2018-02-14 20:30:57 +00:00
|
|
|
void lsr(void);
|
2018-02-23 05:16:43 +00:00
|
|
|
|
|
|
|
unsigned char high(int value);
|
|
|
|
unsigned char low(int value);
|
|
|
|
|