⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 source1.ucp

📁 Intel IXP1200开发指南. 包含IXP1200网络处理器PPT演示与Demo Code.
💻 UCP
字号:
.line 1 "D:\yxp\ixp1200\讲座\Intel IXP1200开发指南\开发指南5之demo工程\开发指南(5)之demo工程\demo4\Source1.uc"
;Reference Instructions
;TA
;sram (push-pop operation)
;Microengine 0  run this code.
immed[base,1]
immed[head_offset,0]
sram [push,--,head_offset,base,4];the pointer's linked-stack[4] elements[0] is 0x1
immed[head_offset,1]
sram [push,--,head_offset,base,4];the pointer's linked-stack[4] elements[1] is 0x2
immed[head_offset,2]
sram [push,--,head_offset,base,4];the pointer's linked-stack[4] elements[2] is 0x3
;
sram[pop,$xfer0,dummy,0,4];$xfer0:=0x3
;SHOULD BE sram[pop,$xfer0,--,--,4],the compiler maybe has BUG !!!
sram[pop,$xfer1,dummy,0,4];$xfer1:=0x2
sram[pop,$xfer2,dummy,0,4];$xfer2:=0x1
sram[pop,$xfer3,dummy,0,4];NOTE:in case of the problem of stack exhaustion , the pointer of stack end should point to itself. 

self#:
br[self#]

⌨️ 快捷键说明

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