英文:
68k string instructions ever implemented?
问题
我正在阅读一篇早期的 Microsystems 文章,它宣布了 68000,并在描述指令集时包括了以下内容:
"String. STRING MOVE, STRING SEARCH; and TRANSLATE are specified but
not implemented in the first version."
根据这些名称,它们似乎旨在与 PDP-11 的 CIS 字符串指令类似 - 我假设 TRANSLATE 例如使用一个256个条目的表来将一个字符集映射到另一个字符集,而 MOVE 则会从地址 A 复制 N 个字节到地址 B。
我不记得有这样的指令,所以我查找了 68020 的 Sun 汇编手册,但没有找到任何踪迹。这些指令是被遗弃了,还是后来在该系列中出现了呢?
英文:
I was reading an older Microsystems article announcing of the 68000 and it included this passage when describing the instruction set:
> String. STRING MOVE, STRING SEARCH; and TRANSLATE are specified but
> not implemented in the first version.
Given the names, they appear to be intended to be similar to the PDP-11's CIS string instructions - I assume TRANSLATE, for instance, uses a 256-entry table to map from one charset to the other, while move would copy N bytes from address A to address B.
I don't recall any such instructions, so I found the Sun assembler manual for the 68020 and can't find any trace. Did these simply get left at the roadside, or did they eventually appear later in the series?
答案1
得分: 3
【68000程序员参考手册】(https://www.nxp.com/docs/en/reference-manual/M68000PRM.pdf)涵盖了68k系列直到68040,并且日期为1992年,仅在四页中使用了“字符串”一词:
- 第3-11页:关于ASCII或EBCDIC与BCD之间的转换;
- 第5-76页和第5-79页:在讨论
FMOVE
时,与小数打包到字符串的上下文类似; - 第C-11页:在讨论S-Records时。
【68060用户手册】(https://www.nxp.com/docs/en/data-sheet/MC68060UM.pdf)再次涉及到FMOVE
上下文中的打包小数字符串,但在一些代码清单之外并没有提到它们。
因此,我会得出结论,68k系列从未获得字符串移动、搜索或翻译功能。
英文:
The 68000 programmer's reference manual, which covers the 68k family up to the 68040 and dates from 1992, uses the word 'string' on only four pages:
- Page 3-11: regarding conversion between ASCII or EBCDIC and BCD;
- Pages 5-76 and 5-79: in much the same context during discussion of
FMOVE
, i.e. decimals packed into strings; - Page C-11: during discussion of S-Records.
The 68060 user's manual again refers to packed decimal strings in the context of FMOVE
but otherwise doesn't make reference to them outside of some code listings.
Therefore I would conclude that the 68k family never acquired string move, search or translate.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论