加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

汇编 – 我的.exe程序不是我的预期

发布时间:2020-12-13 21:25:59 所属栏目:Windows 来源:网络整理
导读:我的masm源文件如下: qq.asm assume cs:codesegmentcodesegment segmentmov ax,0ffffhmov ds,axmov al,00ffhmov bx,0006hmov [bx],almov al,[0006]mov ah,0mov dx,0mov cx,3s: add dx,axloop smov ax,4c00hint 21hcodesegment endsend 我使用masm程序生成一
我的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]

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读