汇编 “error A2031”

assume cs:code
code segment
    main:
         mov ax,0020h
         mov ds,ax     ;指定段地址0200h
         mov dx,0h
         mov cx,003fh 
    s:   
         mov [dx],dx
         inc dx
         loop s

         mov ax,4c00h
         int 21h
    code ends
end main

汇编 “error A2031”_第1张图片

 

 原因:16 Bit CPU中,不能用DX间接寻址,必须用BX、BP、SI、DI

转载于:https://www.cnblogs.com/chrysanthemum/p/11511369.html

你可能感兴趣的:(汇编 “error A2031”)