首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

问一下ADDAB/ADDAH指令问题,谢谢

ADDAB (.unit) src2, src1, dst

src1 is added to src2 using the byte addressing
mode specified for src2. The addition defaults to linear mode. However, if src2
is one of A4−A7 or B4−B7, the mode can be changed to circular mode by
writing the appropriate value to the AMR .The
result is placed in dst.

AMR:

1−0 A4 MODE 0−3h Address mode selection for register file A4.
            0  Linear modification (default at reset)
            1h Circular addressing using the BK0 field
            2h Circular addressing using the BK1 field
            3h Reserved

ADDAB .D1 A4,A2,A4

ADDAB (.unit) src2, src1, dst

src1 is added to src2 using the byte addressing
mode specified for src2. The addition defaults to linear mode. However, if src2
is one of A4−A7 or B4−B7, the mode can be changed to circular mode by
writing the appropriate value to the AMR .The
result is placed in dst.

AMR:

1−0 A4 MODE 0−3h Address mode selection for register file A4.
            0  Linear modification (default at reset)
            1h Circular addressing using the BK0 field
            2h Circular addressing using the BK1 field
            3h Reserved

ADDAB .D1 A4,A2,A4

A2=0000000BH(A2[0-1]==3),src2==A4-->A4[0-1]=3,the mode changed...and the result is placed in dst(A4).in other words,if(src2==[A4-A7,B4-B7]){A4'[0-1]=A2[0-1];A4=A4';}

[此贴子已经被作者于2007-5-21 16:30:15编辑过]

返回列表