• 常用的 写代码 的 指令


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

    3,div(division)

    除法
    4,byte 字节
    5,rep(repeat) 重复
    6,db=declare byte 1个字节,8位
    7,dw=declare byte 2个字节,16位
    8,dd=declare byte 4个字节,32位
    9,dp=declare byte 8个字节,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  种子
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
  • 相关阅读:
    014.Python函数
    013.Python的文件操作
    012.Python的字典和集合的相关函数
    011.Python的列表的相关操作
    010.Python字符串的格式化
    009.Python字符串相关函数
    008.Python循环for循环
    007.Python循环语句while循环嵌套
    Java 反射机制 初探*
    Java 正则初探
  • 原文地址:https://www.cnblogs.com/xiaodaxiaonao/p/7191834.html
Copyright © 2020-2023  润新知