小鼠仔仔 发表于 2015-4-30 15:47:18

看了一个多小时也没看出错来啊

王爽老师的教材,188页实验9。。。。。可以编译,但运行什么都没显示。:cry

assume cs:codesg,ds:datasg
datasg segment
       db 'welcome to masm!'
datasg ends

codesg segment
start: mov ax,datasg
         mov ds,ax              

         mov ax,0b872h
         mov es,ax
          
          mov cx,16
          mov si,0
          mov bx,0           

s:          mov al,
          mov ah,02h
          mov es:,ax
          mov ah,24h
          mov es:,ax
          mov es:,ax
          mov ah,
          mov es:,ax
          add si,2
          inc bx           
          loop s

          mov ax,4c00h
          int 21h
codesg ends
end start           
          

haiouda 发表于 2015-4-30 22:18:50

参考下我写的吧

http://bbs.fishc.com/forum.php?mod=viewthread&tid=60701&page=1#pid2334338

小鼠仔仔 发表于 2015-5-1 08:35:20

haiouda 发表于 2015-4-30 22:18
参考下我写的吧

http://bbs.fishc.com/forum.php?mod=viewthread&tid=60701&page=1#pid2334338

谢谢了
页: [1]
查看完整版本: 看了一个多小时也没看出错来啊