奇怪的“salc”(setalc,机器代码:D6h):masm32V9里怎么没有这个指令啊???

rularys 2006-12-22 02:15:35
奇怪,奇怪,那么这个指令的助记符号在这里应该用什么捏?我用的是masm32V9
...全文
330 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
大熊猫侯佩 2006-12-22
  • 打赏
  • 举报
回复
嗯~
rularys 2006-12-22
  • 打赏
  • 举报
回复
在一个有趣的16位程序里面,好像是在随机函数产生器里面用到这个指令,在IDA里它被翻译成
setalc
大熊猫侯佩 2006-12-22
  • 打赏
  • 举报
回复
我在intel手册上也么找到,如果真是undocument恐怕只有硬编码。
你在哪看到这个指令的?
rularys 2006-12-22
  • 打赏
  • 举报
回复
那么说,在代码里面我只能这样用它了:

.
.
.
db d6h
.
.
.

*_* @_#
大熊猫侯佩 2006-12-22
  • 打赏
  • 举报
回复
[zt]

SALC - D6 - Set AL on Carry
An undocumented op code that performs an operation common to every
Assembly language subroutine to C and many other higher level languages.
This instruction is a C programmers 'dream' instruction for interfacing
to assembly language.


Undocumented: Available to all Intel x86 processors
Useful in production source code.
SALC
Flags: SET Carry flag to AL
+-+-+-+-+-+-+-+-+-+ +----------+
|O|D|I|T|S|Z|A|P|C| | 11010110 |
+-+-+-+-+-+-+-+-+-+ +----------+
| | | | | | | | | | | D6 |
+-+-+-+-+-+-+-+-+-+ +----------+


The name SALC simply stands for SET the Carry flag in AL. This
instruction is categorized as an undocumented single-byte proprietary
instruction. Intel claims it can be emulated as a NOP. Hardly a NOP,
this instruction sets AL=FF if the Carry Flag is set (CF=1), or resets
AL=00 if the Carry Flag is clear (CF=0). It can best be emulated as SBB
AL,AL. SALC doesn't change any flags, where SBB AL,AL does. This
instruction is most useful to high-level language programmers whose
programs call assembly language, and expect AL to indicate success or
failure. Since it is convenient for assembly language programs to return
status in the CF, this instruction will convert that status to a form
compatible with high level languages.

Over the years, this instruction has been given many names by various
discoverers. I originally gave it the name SETCAL, but the most common
name I've seen in print is SETALC. The name given above, SALC is an
official Intel name. While perusing the P6 opcode map, I always check
for known, undocumented opcodes. After weeding through the map for many
minutes, my patience and perseverance paid off. I found the opcode, and
its name. Intel's name for this opcode is SALC. This would indicate that
Intel plans to officially document this instruction, beginning with the
详情:http://blog.csdn.net/spritenet/article/details/8085378 这个编辑器是我中午翻资料偶然看见的,既然有些人对他评价还可以,因此我就拿来试了试 网上的一些资料基本上都停留在2011年,而且是这个抄这个,这个抄那个,真正有用的并不多,在此我参考了以下几位同学的博客,再次谢谢各位 http://blog.csdn.net/chenloveyue/article/details/7039913 http://blog.csdn.net/salc3k/article/details/5341593 http://hi.baidu.com/honfei/item/267e3dd128d934866dce3fbe http://www.hnonl.com/jonllen/article/66.aspx?display=2 我用的版本是tinymce_3_0_8 官网上有最近版本的,但是木有汉化,而且也没找到相应的说明文档 总体说来这个Tinymce和KindEditor 配置使用起来都比较简单,而且Tinymce还提供两种定义好的模式,一个是专业版,就是所有功能都有的,一种是精简版,只有6.7个功能,当然Tinymce最大的优势在于可以很方便的调整控件,通过plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",就可以很轻松的控制要显示的功能 说说目前发现的缺点: 1.没有图片上传功能 2.没有图文混排 3.css的定义太多 4.最要命的是我居然发现没有设置字体颜色和背景颜色的控件,这让我很纳闷 图片如下: 详情:http://blog.csdn.net/spritenet/article/details/8085378

21,496

社区成员

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

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