是否有x86操作码可用于将立即字节移动到直接存储位置(不使用寄存器)? [英] Is there an x86 opcode for moving an immediate byte to a direct memory location (without using registers)?

查看:113
本文介绍了是否有x86操作码可用于将立即字节移动到直接存储位置(不使用寄存器)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以将特定的立即字节大小数字移动"到直接存储位置?即

Is there a way to 'mov'e a specific immediate byte-size number into a direct memory location? I.e.

MOV 10h,ffffh

将值16写入存储器地址65535?如果是这样,那是哪个操作码,还是我必须先将内存地址存储到寄存器中?

to write the value 16 into the memory address 65535? If so, which opcode is that, orwould I have to store a memory address into a register first?

推荐答案

是.操作码为C6.您应该免费下载英特尔ISA文档的副本,该文档可用.

Yes. The opcode is C6. You should download a copy of the Intel ISA documents, which are freely available.

关于您的后续问题:示例的完整编码为:

To your follow-up question: the full encoding of your example is:

  c6      04      25   ff ff 00 00   10
opcode  modr/m   sib     address     immediate

这篇关于是否有x86操作码可用于将立即字节移动到直接存储位置(不使用寄存器)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆