📄 tms34061.h
字号:
/****************************************************************************
* *
* Function prototypes and constants used by the TMS34061 emulator *
* *
* Created by Zsolt Vasvari on 5/26/1998. *
* *
****************************************************************************/
/* Callback prototypes */
/* Return the function code (FS0-FS2) selected by this offset */
typedef int (*TMS34061_getfunction_t) (int offset);
/* Return the row address (RA0-RA8) selected by this offset */
typedef int (*TMS34061_getrowaddress_t)(int offset);
/* Return the column address (CA0-CA8) selected by this offset */
typedef int (*TMS34061_getcoladdress_t)(int offset);
/* Function called to get a pixel */
typedef int (*TMS34061_getpixel_t)(int col, int row);
/* Function called to set a pixel */
typedef void (*TMS34061_setpixel_t)(int col, int row, int pixel);
struct TMS34061interface
{
TMS34061_getfunction_t getfunction;
TMS34061_getrowaddress_t getrowaddress;
TMS34061_getcoladdress_t getcoladdress;
TMS34061_getpixel_t getpixel;
TMS34061_setpixel_t setpixel;
int cpu; /* Which CPU is the TMS34061 causing interrupts on */
int (*vertical_interrupt)(void); /* Function called on a vertical interrupt */
};
/* Initializes the emulator */
int TMS34061_start(struct TMS34061interface *interface);
/* Cleans up the emulation */
void TMS34061_stop(void);
/* Writes to the 34061 */
void TMS34061_w(int offset, int data);
/* Reads from the 34061 */
int TMS34061_r(int offset);
/* Checks whether the display is inhibited */
int TMS34061_display_blanked(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -