+ -
当前位置:首页 → 问答吧 → 书上例程错误求教

书上例程错误求教

时间:2011-01-31

来源:互联网

啥也不说了 代码如下:

dseg segment
  mes BD "This is an Assemble Program.", 0DH,0AH,"$"
  space bd " ","$"
dseg ends
cseg segment
  assume cs:cseg,ds:dseg
  start:
  mov ax,dseg
  mov ds,ax
  mov bx,01h
  again:
  mov dx,offset mes
  mov ah,09h
  int 21h
  mov cx,bx
  inc bx
  next:
  mov dx,offset space
  mov ah,09h
  int 21h
  loop next
  cmp bx,10
  jbe again
  mov ah,4ch
  int 21h
cseg ends
end start

作者: NETWILLIAM   发布时间: 2011-01-31

space bd " ","$"
-------------------
笔误吧

作者: masmaster   发布时间: 2011-01-31

把数据段里的数据类型写对了, 再试一试吧。Assembly code

mes db "This is an Assemble Program.", 0DH,0AH,"$"
space db " ","$"

作者: masmaster   发布时间: 2011-01-31