ST10编程手册关于指令使用的问题

gorzen 2008-10-17 04:12:48


SCXT Switch Context
Syntax SCXT op1, op2
Operation (tmp1) <-- (op1)
(tmp2) <--(op2)
(SP) <-- (SP) - 2
((SP)) <-- (tmp1)
(op1) <-- (tmp2)
Data Types WORD

Description
Used to switch contexts for any register. Switching context is a push and load operation. The contents of the register specified by the first operand, op1, are pushed onto the stack. That register is then loaded with the value specified by the second operand, op2.
Flags
E Z V C N
- - - - -
E Not affected
Z Not affected
V Not affected
C Not affected
N Not affected
Addressing Modes

Mnemonic Format Bytes
SCXT reg, #data16 C6 RR ## ## 4
SCXT reg, mem D6 RR MM MM 4


刚开始学汇编, 上面红色部分望大家能解释一下:
1)SCXT这条指令的详细用法;
2)其中(SP)与((SP))有什么不同.
...全文
79 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
gorzen 2008-10-17
  • 打赏
  • 举报
回复
3) 最下面红色部分2条语句有什么不同?

21,500

社区成员

发帖
与我相关
我的任务
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
  • 汇编语言
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧