返回列表 发布新帖

变址寄存器

275 0
发表于 2024-7-10 18:16:53 | 查看全部 阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
<p><span style=";font-size:17px;font-family:黑体;color:rgb(35,31,32)">&nbsp;V、Z </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">变址寄存器 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">V </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">与 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">Z </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">同普通的数据寄存器一样,是进行数值数据的读入、写出的 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">16 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">位数据寄存器。 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">V0 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">~ </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">V7</span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">,</span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">Z0 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">~ </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">Z7 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">共有 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">16 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">个。 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">变址寄存器除了和普通的数据寄存器有相同的使用方法外,在应用指令的操作数中,还可以同其他的软元件 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">编号或数值组合使用。但需注意 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">LD</span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">,</span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">AND</span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">,</span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">OUT </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">等基本顺控指令或步进梯形图指令的软元件编号不能同变 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">址寄存器组合使用。 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">V</span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">、</span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">Z </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">寄存器可采用 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">16bit </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">和 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">32bit </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">方式进行访问,如下图说明: </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">V0</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(高位) </span><span style=";font-size:11px;font-family:Arial Narrow;color:rgb(0,0,0)">32</span><span style=";font-size:11px;font-family:黑体;color:rgb(0,0,0)">位 </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">Z0</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(低位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">V1</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(高位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">Z1</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(低位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">V2</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(高位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">Z2</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(低位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">V3</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(高位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">Z3</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(低位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">V4</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(高位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">Z4</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(低位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">V5</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(高位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">Z5</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(低位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">V6</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(高位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">Z6</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(低位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">V7</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(高位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">Z7</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">(低位) </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">32</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">位访问方式时,按如下 </span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">方式组合成</span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">8</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">个寄存器 </span><span style=";font-size:13px;font-family:ArialNarrow-Bold;color:rgb(0,0,0);font-weight:bold">V </span><span style=";font-size:11px;font-family:Arial;color:rgb(0,0,0)">16</span><span style=";font-size:11px;font-family:黑体;color:rgb(0,0,0)">位 </span><span style=";font-size:13px;font-family:ArialNarrow-Bold;color:rgb(0,0,0);font-weight:bold">Z </span><span style=";font-size:11px;font-family:Arial;color:rgb(0,0,0)">16</span><span style=";font-size:11px;font-family:黑体;color:rgb(0,0,0)">位 </span><span style=";font-size:11px;font-family:Arial;color:rgb(0,0,0)">V0 ~ V7</span><span style=";font-size:11px;font-family:黑体;color:rgb(0,0,0)">:</span><span style=";font-size:11px;font-family:Arial;color:rgb(0,0,0)">8</span><span style=";font-size:11px;font-family:黑体;color:rgb(0,0,0)">点 </span><span style=";font-size:11px;font-family:Arial;color:rgb(0,0,0)">Z0 ~ Z7</span><span style=";font-size:11px;font-family:黑体;color:rgb(0,0,0)">:</span><span style=";font-size:11px;font-family:Arial;color:rgb(0,0,0)">8</span><span style=";font-size:11px;font-family:黑体;color:rgb(0,0,0)">点 </span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">16</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">位访问方式时,为独立 </span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">的</span><span style=";font-size:13px;font-family:Arial Narrow;color:rgb(0,0,0)">16</span><span style=";font-size:13px;font-family:宋体;color:rgb(0,0,0)">个寄存器 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">按照惯例,在处理 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">32 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">位应用指令中的软元件或处理超过 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">16 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">位范围的数值时,(为 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">32bit </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">寄存器方式),</span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">V</span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">(高 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">位)、</span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">Z</span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">(低位)被同时访问,指定的寄存器名必须为 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">Z0 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">~ </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">Z7</span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">。即使指定了 </span><span style=";font-size:13px;font-family:Arial;color:rgb(35,31,32)">V0~V7 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">的高位侧,也无法进行 </span><span style=";font-size:13px;font-family:宋体;color:rgb(35,31,32)">变址。</span></p>

回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright © 2001-2024 英威腾技术论坛 版权所有 All Rights Reserved. 粤ICP备07504406号
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表