tl_int.h

来自「DC上的GB模拟器源代码」· C头文件 代码 · 共 32 行

H
32
字号
/*
** thinlib (c) 2001 Matthew Conte (matt@conte.com)
**
**
** tl_int.h
**
** interrupt handling stuff
**
** $Id: $
*/

#ifndef _TL_INT_H_
#define _TL_INT_H_

#define  THIN_DISABLE_INTS()        __asm__ __volatile__ ("cli")
#define  THIN_ENABLE_INTS()         __asm__ __volatile__ ("sti")

typedef int (*inthandler_t)(void);

extern int thin_int_install(int chan, inthandler_t handler);
extern void thin_int_remove(int chan);

extern void thin_irq_restore(int irq);
extern void thin_irq_enable(int irq);
extern void thin_irq_disable(int irq);

#endif /* !_TL_INT_H_ */

/*
** $Log: $
*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?