简体   繁体   English

摩托罗拉68k:了解状态注册器标志状态

[英]Motorola 68k: Understanding the status registrer flag states

I'm having trouble understanding how exactly the Status Register (SR) content works. 我在了解状态寄存器(SR)内容的工作方式时遇到麻烦。

在此处输入图片说明

Let's say that the content of (SR) = $0300. 假设(SR)的内容= $ 0300。 How would I figure out in which states the flags are? 我如何确定标记处于哪些状态?
Of course that would also answer the question, if the flags are in [insert states here], (SR) = $???? 当然,如果标志处于[在此处插入状态],(SR)= $ ????,那也会回答这个问题。

Convert the SR contents to binary, write it next to the boxes: 将SR内容转换为二进制,将其写在框旁边:

Most of the bits are just flags and signal a yes/no condition, except the Interrupt Priority Mask, which actually is a number between 0 and 7. 除了中断优先级掩码(实际上是一个介于0到7之间的数字)外,大多数位只是标志,表示是/否状态。

$0300 = 0b0000001100000000 $ 0300 = 0b0000001100000000

T 0 S 003000 XNZVC T 0 S 003000 XNZVC

meaning 含义

  • No Trace mode 无追踪模式
  • No Supervisor mode 没有主管模式
  • Interrupt priority level: 3 中断优先级:3
  • No extent, negative, zero, overflow or carry condition 无范围,负数,零,溢出或进位条件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM