简体   繁体   English

68k寄存器地址

[英]68k register addresses

This question is begging for a bunch of "why are you doing this?"这个问题是在乞求一堆“你为什么要这样做?” responses.回应。

I haven't been able to find this information in the 68k Programmer's Reference Manual , but that may be because I'm not sure of what verbiage to search for.我无法在68k Programmer's Reference Manual中找到此信息,但这可能是因为我不确定要搜索什么措辞。

Here is the instruction format for the 68k's ADD opcode.这是 68k 的ADD操作码的指令格式。

在此处输入图像描述

Bits 0-2 and 9-11 designate registers.位 0-2 和 9-11 指定寄存器。 What are the binary representations of the 68k's registers? 68k 寄存器的二进制表示是什么? Are they "addresses"?它们是“地址”吗?

Yes, I am aware that I can write a 68k assembly program and debug it to find this information.是的,我知道我可以编写一个 68k 的汇编程序并对其进行调试以查找此信息。 I'm looking for a reference.我正在寻找参考。 Thanks!谢谢!

See Sec.见秒。 2.1, "Instruction Format": 2.1、“指令格式”:

An instruction specifies the function to be performed with an operation code and defines the location of every operand.一条指令使用操作码指定要执行的 function,并定义每个操作数的位置。 Instructions specify an operand location by register specification, the instruction's register field holds the register's number ;指令通过寄存器规范指定操作数位置,指令的寄存器字段保存寄存器的编号 by effective address, the instruction's effective address field contains addressing mode information;通过有效地址,指令的有效地址字段包含寻址方式信息; or by implicit reference, the definition of the instruction implies the use of specific registers.或者通过隐式引用,指令的定义意味着使用特定的寄存器。 (emphasis added) (重点补充)

These probably refer to the An and Dn registers listed in figure 1-1, page 1-2 of the manual you linked.这些可能是指您链接的手册第 1-2 页图 1-1 中列出的 An 和 Dn 寄存器。

The 3 bits specify the address register number, from 0 (bits: 0-0-0) to 7 (bits: 1-1-1). 3 位指定地址寄存器编号,从 0(位:0-0-0)到 7(位:1-1-1)。 But generally you can let the assembler worry about this stuff.但通常你可以让汇编器担心这些东西。 I hope this helps, Dave我希望这会有所帮助,戴夫

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

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