X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fcpu8051.h;h=942d64a618ef61431c9f524676fa851cb814753b;hb=b1fbb635cdd64e96bf36a62dc6b59d6724f5ad57;hp=da58ac58467f31da7ffa1213d294b33fd9fea891;hpb=4c305c73f8110d03b99cec045b3c5741867fd46b;p=emu8051.git diff --git a/src/cpu8051.h b/src/cpu8051.h index da58ac5..942d64a 100644 --- a/src/cpu8051.h +++ b/src/cpu8051.h @@ -5,6 +5,28 @@ #define CPU8051_H 1 +typedef struct cpu8051_t +{ + unsigned int pc; + unsigned long clock; + int active_priority; +} cpu8051_t; + + +/* Exported variables */ +#undef _SCOPE_ +#ifdef CPU8051_M +# define _SCOPE_ /**/ +#else +# define _SCOPE_ extern +#endif + +_SCOPE_ cpu8051_t cpu8051; + + +void +cpu8051_init( void ); + void cpu8051_Exec( void ); @@ -26,11 +48,9 @@ cpu8051_ReadD( unsigned int Address ); unsigned char cpu8051_ReadInt( unsigned int Address ); - unsigned char cpu8051_ReadI( unsigned int Address ); - unsigned int cpu8051_GetNextAddress( void );