我的masm源文件如下:
qq.asm
assume cs:codesegment codesegment segment mov ax,0ffffh mov ds,ax mov al,00ffh mov bx,0006h mov [bx],al mov al,[0006] mov ah,0 mov dx,0 mov cx,3 s: add dx,ax loop s mov ax,4c00h int 21h codesegment ends end
我使用masm程序生成一个名为qq.exe的.exe文件.当我使用debug qq.exe -u时,教师如下图所示:
我混淆了我的qq.asm中的“mov al,[0006]”指导员在qq.exe中转向“mov AL,06”.
任何帮助将是欣赏.
[0006]被解释为直接常数.您可以通过段覆盖来避免它:
mov al,ds:[0006]