常用的 写代码 的 指令

1,mov(move)移动
2,add加法

3,div(division)

除法
4,byte字节
5,rep(repeat)重复
6,db=declare byte1个字节,8位
7,dw=declare byte2个字节,16位
8,dd=declare byte4个字节,32位
9,dp=declare byte8个字节,64位
10,jmp(jump)跳转
11,movsb(mov string byte)移动 一串 一个字节
12,loop=movsb绕个圈
13,calc计算
14,show结果
15,stop: jmp near stop
times 510-($-$$) db 0
dw 0xAA55

补充512个字节
 cbw(convert byte to word)
 符号扩展(8位扩展到16位
 cwd(convert word to D ouble word) 符号扩展(16扩展到32位)
 cmp(compare) 减(不会影响寄存器数据变化)
 test 加(不影响寄存器的数据变化)
 sub 减
 inc(increase) 递增
 dec(decrease) 递减
 cld 
告诉程序si,di向前移动递增 df=0
 std 
指令为设置方向,告诉程序si,di向后移动递减 df=1
 call 呼叫转移
 ret(return) 返回  执行call下一行代码
 in(input) 输出(使用在断口处)
 out(output)输入(使用在端口处) 
 and

 与门

A      B        C

0      0       0

1      0       0

0       1       0

1       1       1

 XOR

 异或门

a        b        c

0       0        0

1       0        1

0       1        1

1       1        0

 not

 非门 

a     b

1      0

0      1

 or

 或门

a        b          c

1          0         1

 0         1          1

1          1          1

 char 8bit 1个字节 0~0xFF
 short int 16bit 2字节 0~0xFFFF
 int 32bit 4个字节 0~0xFFFFFFFF
 long int 32bit 4个字节 0~0xFFFFFFFF
 long long int 64bit 8个字节 0~0xFFFFFFFFFFFFFFFF  
 sizeof 计算变量长度
 struct j结构体 专用词
 const 常数
 rand 伪随机数
 srand 种子
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

转载于:https://www.cnblogs.com/xiaodaxiaonao/p/7191834.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值