CX51 用户手册----INTVECTOR 伪指令
来源:互联网 发布:学大数据要高数基础吗 编辑:程序博客网 时间:2024/05/01 09:36
声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
INTVECTOR Compiler Directive
AbbreviationIV
ArgumentsAn optional offset, in parentheses, for the interrupt vector table.
DefaultINTVECTOR (0)
µVisionOptions — C51 — Interrupt vectors at address.
DescriptionThe INTVECTOR directive instructs the compiler to generate interrupt vectors for functions which require them. An offset may be entered if the vector table starts at an address other than 0. The range for this offset is 0 .. 65535.
The compiler generates interrupt vectors using either AJMP or LJMP instructions (depending on the size of the program memory specified with the ROM directive).
Vectors are located starting at absolute address:
(n * interval) + offset + 3
Where
nis the interrupt number.intervalis the argument of the INTERVAL directive (default 8).offsetis the argument of the INTVECTOR directive (default 0).See AlsoINTERVAL, NOINTVECTOR
ExampleC51 SAMPLE.C INTVECTOR(0x8000)#pragma iv(0x8000)
INTVECTOR 编译器伪指令
缩写
IV
参数中断向量表的偏移选项,用括号括起来。
缺省INTVECTOR (0)
µVisionOptions — C51 — Interrupt vectors at address.
描述INTVECTOR 伪指令通知编译器为中断函数生成中断向量。如果向量表的开始地址不是0,就需要输入偏移,偏移的范围是 0 .. 65535。
编译器使用 AJMP 或 LJMP i指令 (根据由ROM伪指令指定的程序存储器的大小)生成中断向量。
向量定位在绝对地址的开始处:
(n * interval) + offset + 3
这里
n中断号interval INTERVAL 伪指令参数(缺省是 8)。offsetINTVECTOR 伪指令参数(缺省是 0)。参考INTERVAL, NOINTVECTOR
示例C51 SAMPLE.C INTVECTOR(0x8000)#pragma iv(0x8000)
- CX51 用户手册----INTVECTOR 伪指令
- Cx51 用户手册----FIXXC800 伪指令
- CX51 用户手册----FLOATFUZZY 伪指令
- CX51 用户手册----INCDIR 伪指令
- CX51 用户手册----INTERVAL 伪指令
- CX51 用户手册----INTPROMOTE 伪指令
- CX51 用户手册----LARGE伪指令
- CX51 用户手册----LISTINCLUDE伪指令
- CX51 用户手册----MAXARGS 伪指令
- CX51 用户手册----MDU_F120伪指令
- CX51 用户手册----MDU_R515 伪指令
- CX51 用户手册----MOD517 伪指令
- CX51 用户手册----MODA2伪指令
- CX51 用户手册----MODAB2 伪指令
- CX51 用户手册----MODC2伪指令
- CX51 用户手册----MODDA伪指令
- CX51 用户手册----MODDP2伪指令
- CX51 用户手册----MODH2伪指令
- WorldWind学习系列十三:地形数据(DEM)加载和应用(入门篇)
- Linux下SVN远端安全改密配置脚本
- 移动领域:梅姐掌管的雅虎也不能回避的问题
- 使用android SharedPreference判断程序是否第一次运行
- 反向投影图
- CX51 用户手册----INTVECTOR 伪指令
- TCP/IP学习(三)TCP连接的建立与终止
- Extjs 自定义组件实例
- Windows Socket五种I/O模型——代码全攻略
- E-TASK--(2) 学习css
- 判断NSString是不是纯数字
- 堆栈的区别 及 增长方向
- 大连市知名中医(整理中)
- timestamp格式的日期