computer007 发表于 2011-5-29 18:21:48

21h中断 让屏幕显示字符

assume cs:codesg



codesg segment
       

s:        db 'i love fish .com $!'
        movbx,cs
        movds,bx
        leadx,s
        mov ah,9


        int 21h

       
        mov ax,004ch
        int 21h       
codesg ends

end

哪里错了 怎么显示不了啊??

lqyha 发表于 2011-5-29 21:18:06

mov ax,004ch
      int 21h    应该是4C00H

Seely 发表于 2011-5-29 22:19:08

不止是这个问题,你这编译都通不过的
如何解决不知

computer007 发表于 2011-5-30 13:38:06

编译能通过 就是不能显示 是不是我机子的问题 ,我照视频上抄的代码 都不能显示

幕府幽魂 发表于 2011-5-30 13:40:42

貌似不能编译

63319928 发表于 2011-5-31 21:56:55

完整代码 :)

assume cs:code

data segment
   db 'love fishc.com$'
data ends

code segment
start: mov ah,2
       mov bh,0
           mov dh,5
           mov dl,12
           int 10h
          
           mov ax,data
           mov ds,ax
           mov dx,0
           mov ah,9
           int 21h
          
           mov ax,4c00h
           int 21h
code ends

end start          
          
          
页: [1]
查看完整版本: 21h中断 让屏幕显示字符