.drop 伪操作
用途
停止使用指定的寄存器作为基本寄存器。
语法
| 项 | 描述 |
|---|---|
| .drop | 数字 |
描述
.drop 伪操作阻止程序将由 Number 参数指定的寄存器用作操作中的基本寄存器。 当更改基本地址时, .drop 伪操作不必在 .using 伪操作之前,而 .drop 伪操作不必出现在程序的末尾。
参数
| 项 | 描述 |
|---|---|
| 编号 | 指定求值为从 0 到 31 (含) 的整数的表达式。 |
示例
以下示例演示如何使用 .drop 伪操作:
.using _subrA,5
# Register 5 can now be used for addressing
# with displacements calculated
# relative to _subrA.
# .using does not load GPR 5 with the address
# of _subrA. The program must contain the
# appropriate code to ensure this at runtime.
.
.
.
.drop 5
# Stop using Register 5.
.using _subrB,5
# Now the assembler calculates
# displacements relative to _subrB