计算机应用与软件
計算機應用與軟件
계산궤응용여연건
COMPUTER APPLICATIONS AND SOFTWARE
2014年
9期
325-328
,共4页
中断管理%三级跳转%中断向量表%异常跳转表%堆栈图方法
中斷管理%三級跳轉%中斷嚮量錶%異常跳轉錶%堆棧圖方法
중단관리%삼급도전%중단향량표%이상도전표%퇴잔도방법
Interrupt management%Three-grade jumps%Interrupt vector table%Exception jump table%Stack diagram method
针对ARM9 S3C2410的汇编语言中断程序难以理解的问题,提出用堆栈图对中断程序进行解析的方法。在详细论述S3C2410的中断管理机制基础上,给出中断处理的三级跳转图。分析三级跳转的设计思想,讨论利用异常跳转表、宏指令表、异常向量表、中断向量表实现跳转的方式。并用堆栈图详细解析跳转程序,给出中断服务程序写入中断向量表的汇编语言方式与C语言方式。分析结果表明,堆栈图方法能够详细清楚地呈现中断程序的设计思想,是一种行之有效的汇编语言中断程序的解析方法。
針對ARM9 S3C2410的彙編語言中斷程序難以理解的問題,提齣用堆棧圖對中斷程序進行解析的方法。在詳細論述S3C2410的中斷管理機製基礎上,給齣中斷處理的三級跳轉圖。分析三級跳轉的設計思想,討論利用異常跳轉錶、宏指令錶、異常嚮量錶、中斷嚮量錶實現跳轉的方式。併用堆棧圖詳細解析跳轉程序,給齣中斷服務程序寫入中斷嚮量錶的彙編語言方式與C語言方式。分析結果錶明,堆棧圖方法能夠詳細清楚地呈現中斷程序的設計思想,是一種行之有效的彙編語言中斷程序的解析方法。
침대ARM9 S3C2410적회편어언중단정서난이리해적문제,제출용퇴잔도대중단정서진행해석적방법。재상세논술S3C2410적중단관리궤제기출상,급출중단처리적삼급도전도。분석삼급도전적설계사상,토론이용이상도전표、굉지령표、이상향량표、중단향량표실현도전적방식。병용퇴잔도상세해석도전정서,급출중단복무정서사입중단향량표적회편어언방식여C어언방식。분석결과표명,퇴잔도방법능구상세청초지정현중단정서적설계사상,시일충행지유효적회편어언중단정서적해석방법。
For the problem of difficult to understand the interrupt program in ARM9 S3C2410 assembly language,we propose a method toparse the interrupt program with stack diagram.On the basis of expounding the interrupt management mechanism of S3C2410,we give athree-grade jump diagrams for interrupt processing,and analyse the design ideas of the three-grade jump.We discuss the jump realisationmeans,including using the exception jump table,macro table,exception vector table,interrupt vector table,etc.,and parse in detail thejump programs using stack diagram.Besides,we also give the assembly language mode and C language mode with which the interrupt serviceprogram is written into interrupt vector table.Analytical results show that the stack diagram method can thoroughly and clearly present the de-sign ideas of interrupt program,it is an effective parsing way for the interrupt program in assembly language.