首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

CODEWARRIOR中断写法

CODEWARRIOR中断写法

方法1

interrupt 3 IntFunc1()
{
…/*code*/
}
Means that the third entry in the vector table is initialized with the address of IntFunc1().
方法2
In the C file:
interrupt IntFunc2()
{
…..
}
In the PRM file:
VECTOR ADRESS 0xFFF2 IntFunc2
Means that the address of IntFunc2 is written at address 0xFFF2.

返回列表