硬编码学习(六)

本文详细介绍了X86架构下汇编语言中的MOV指令用法,包括立即数加载到寄存器、寄存器间的数据移动以及通过不同寻址方式将寄存器中的值移动到内存中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

mov rax,iv      i立即数 v宽度4个字节
mov al,ib       i立即数 b宽度1个字节

1mov r/m8,r8   ==>mov eb,gb==>0x88             e:r/m   b是一个字节8个位
    a、mov m8,r8
    b、mov r8,r8
    mov byte ptr ds:[eax],al
    mov byte ptr ds:[0x0012ff80],al
    mov byte ptr ds:[eax+0x12],al
    mov byte ptr ds:[eax+ebx],al
    mov byte ptr ds:[eax+ebx*2],al
    mov byte ptr ds:[eax+ebx*4],al
    mov byte ptr ds:[eax+ebx*8],al
    mov byte ptr ds:[eax+ebx+0x12],al
    mov byte ptr ds:[eax+ebx*2+0x12],al
    mov byte ptr ds:[eax+ebx*4+0x12],al
    mov byte ptr ds:[eax+ebx*8+0x12],al
    mov byte ptr ds:[eax+ebx+0x123456789],al
    mov byte ptr ds:[eax+ebx*2+0x123456789],al
    mov byte ptr ds:[eax+ebx*4+0x123456789],al
    mov byte ptr ds:[eax+ebx*8+0x123456789],al


5:        mov byte ptr ds:[eax],al
0040D458 3E 88 00             mov         byte ptr ds:[eax],al
6:        mov byte ptr ds:[0x0012ff80],al
0040D45B 3E A2 80 FF 12 00    mov         ds:[0012FF80],al
7:        mov byte ptr ds:[eax+0x12],al
0040D461 3E 88 40 12          mov         byte ptr ds:[eax+12h],al
8:        mov byte ptr ds:[eax+ebx],al
0040D465 3E 88 04 18          mov         byte ptr ds:[eax+ebx],al
9:        mov byte ptr ds:[eax+ebx*2],al
0040D469 3E 88 04 58          mov         byte ptr ds:[eax+ebx*2],al
10:       mov byte ptr ds:[eax+ebx*4],al
0040D46D 3E 88 04 98          mov         byte ptr ds:[eax+ebx*4],al
11:       mov byte ptr ds:[eax+ebx*8],al
0040D471 3E 88 04 D8          mov         byte ptr ds:[eax+ebx*8],al
12:       mov byte ptr ds:[eax+ebx+0x12],al
0040D475 3E 88 44 18 12       mov         byte ptr ds:[eax+ebx+12h],al
13:       mov byte ptr ds:[eax+ebx*2+0x12],al
0040D47A 3E 88 44 58 12       mov         byte ptr ds:[eax+ebx*2+12h],al
14:       mov byte ptr ds:[eax+ebx*4+0x12],al
0040D47F 3E 88 44 98 12       mov         byte ptr ds:[eax+ebx*4+12h],al
15:       mov byte ptr ds:[eax+ebx*8+0x12],al
0040D484 3E 88 44 D8 12       mov         byte ptr ds:[eax+ebx*8+12h],al
16:       mov byte ptr ds:[eax+ebx+0x123456789],al
0040D489 3E 88 84 18 89 67 45 mov         byte ptr ds:[eax+ebx+23456789h],al
17:       mov byte ptr ds:[eax+ebx*2+0x123456789],al
0040D491 3E 88 84 58 89 67 45 mov         byte ptr ds:[eax+ebx*2+23456789h],al
18:       mov byte ptr ds:[eax+ebx*4+0x123456789],al
0040D499 3E 88 84 98 89 67 45 mov         byte ptr ds:[eax+ebx*4+23456789h],al
19:       mov byte ptr ds:[eax+ebx*8+0x123456789],al
0040D4A1 3E 88 84 D8 89 67 45 mov         byte ptr ds:[eax+ebx*8+23456789h],al
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值