zoukankan      html  css  js  c++  java
  • 汇编——根据偏移地址索取到的字数据

    用debug查看内存,结果如下:

    2000:1000 AE 01 06 00 6A 55......

      mov ax,2000h

      mov ds,ax

      mov bx,1999h

      mov si,0

      mov ax,[bx+2+si]  偏移地址为[1002h]=0006h

      inc si         si=si+1

      mov cx,[bx+2+si]   偏移地址为[1003h]=6A00h

    一个字为16位,即2个字节,内存中的数据是从低地址——高地址存放的,偏移地址指到的数据为低8位,高八位在高地址中存放,需要反过来读取。

    (       2000:1000 AE 01 06 00 6A 55......

    对应的偏移地址    0  01 02 03 04 05......)

  • 相关阅读:
    第五周
    第四周
    第三周作业
    第二周编程总结
    编程总结(3)
    编程总结(2)
    编程总结(1)
    第七周作业
    第六周作业
    第五周作业
  • 原文地址:https://www.cnblogs.com/ciaociao/p/6525618.html
Copyright © 2011-2022 走看看