📄 exp4c54_7.asm
字号:
*************************************************************** exp4c54_7.asm - An assembly program for C5000 CCS simulator* Special case of multiplication in Section 4.6.7* *************************************************************** Section allocation* .def x,yh,y,initx .usect "vars",2 ; reserve 2 locations for xy .usect "vars",1 ; reserve 1 location for yyh .usect "vars",1 ; reserve 1 location for yh .sect "table"init .int -32768,-32768 .text ; create code section .def start ; label of the beginning of codestart: NOPcopy: STM #x, AR1 RPT #1 MVPD init, *AR1+ mult: .mmregs SSBX FRCT SSBX SXM ; turn-on sign extension SSBX OVM ; turn-on Overflow mode ;RSBX OVM ; turn-off Overflow mode (allow overflow) STM #x, AR1 STM #(x+1),AR2 LD *AR1, T MPY *AR2,A * Write the result to memory location ywrite: STL A,*(y) ; y <- AL STH A,*(yh) ; yh <- AHend NOP B end ; stop here
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -