MOV vs MOV.B汇编语言说明 [英] MOV vs MOV.B assembly language instruction

查看:218
本文介绍了MOV vs MOV.B汇编语言说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用使用模拟的MSP430 CPU的Microruption CTF.

I'm working through the Microcorruption CTF which uses an emulated MSP430 CPU.

我看过一些mov指令示例,例如:

I've seen several mov instruction examples like:

mov sp, r4 ; move value of stack pointer to register 4

mov #0xfffc, r15 ; move hex value fffc to r15

我正在尝试解释:

mov.b #0x4f, 0x0(r15)

我假设mov.b是#0x4f的二进制值,但是我不确定0x0(r15)表示什么.

I assume mov.b is binary value of #0x4f, but I'm not sure what 0x0(r15) indicates.

推荐答案

这意味着使用字节操作:

It means use a byte operation:

The suffix .B at the instruction memonic will result in a byte operation

因此只有一个字节的数据将从源复制到目标.

So only a byte of data will be copied from the source to the destination.

0x0(r15)是索引寻址模式,因此请使用r15 + 0字节指定目标位置.

0x0(r15) is an indexed addressing mode, so use r15 + 0 bytes to specify the destination.

这篇关于MOV vs MOV.B汇编语言说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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