第六讲 与 STEP7-300、400指令应用.ppt

第六讲 与 STEP7-300、400指令应用

(2) 程序设计 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 返回目录 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 1. 移位指令概述 移位指令可以逐位向左或向右移动输入端IN的内容。向左移n位会将输入IN的内容乘以2的n次幂(2 n );向右移n位则会将输入IN的内容除以2的n次幂(2 n )。N参数提供的数值指示要移动的位数。由移位指令移空的位会用零或符号位的信号状态(0表示正,1表示负)补上。 6 移位/循环指令、转换、 数学运算、字逻辑及数据块指令 6.1 移位指令 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 2.移位指令 移位指令见表4-10: 表4-10 移位指令 SHR_I SHR_DI SHL_W SHR_W SHL_DW SHR_DW 整数右移 长整数右移 字左移 字右移 双字左移 双字右移 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. (1)整数右移指令 符号: Parameter EN ENO IN N OUT Data Type BOOL BOOL INT WORD INT Memory Area I, Q, M, L, D I, Q, M, L, D I, Q, M, L, D I, Q, M, L, D I, Q, M, L, D Description Enable input Enable output Value to shift Number of bit positions to shift Result of shift instruction Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 说明: Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 举例: Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. (2)长整数右移指令 符号: (3)字左移指令 符号: Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5

文档评论(0)

1亿VIP精品文档

相关文档