11 2012 档案

TI C64X DSP中断向量表的配置(硬件中断)-- 转自新浪博客
摘要:1. 编写中断服务例程在.c源文件中编写ISR函数c_intXX,用于中断处理,如:interrupt void c_intXX (void){…;}注:对于硬件中断而言,XX = 00~15。2.初始化中断向量表,并在内存段中的中断向量表中配置好对应的中断向量首先是把中断向量表定位到某一内存段中,我们可以在cmd文件中配置中断向量表的内存映射,如:MEMORY{VECTORS: org = 00000000h, len = 00000400hL2SRAM: org = 00000400h, len = 00100000hSDRAM: org = 80000000h, len = 100000 阅读全文

posted @ 2012-11-27 15:48 沉沉-_- 阅读(4037) 评论(0) 推荐(0)

宏定义中的#,## -- 转自CSDN
摘要:1、在一个预处理器宏中的参数前面使用一个#,预处理器会把这个参数转换为一个字符数组。(原文:When you put a # before an argument in a preprocessormacro, the preprocessor turns that argument into a character array. This,combined with the fact that character arrays with no intervening punctuation are concatenated into a single character array, all 阅读全文

posted @ 2012-11-27 14:52 沉沉-_- 阅读(741) 评论(0) 推荐(0)

bochs: ICW1:level sensitive mode not supported
摘要:最近在用bochs虚拟机写一些裸奔程序,做到时钟实验这部分时开启了定时器中断,一运行就提示:ICW1:level sensitive mode not supported.google 了一下,从bochs的源代码上可以看出来:这种错误出现在:View Code 1 void bx_pic_c::write(Bit32u address, Bit32u value, unsigned io_len) 2 { 3 ......... 4 switch (address) { 5 ...... 6 case 0x20: ... 阅读全文

posted @ 2012-11-20 21:17 沉沉-_- 阅读(403) 评论(0) 推荐(0)

导航