276691146 发表于 2012-12-9 10:27:47

一个小问题

想学些驻留程序,看到这个例子,有些错误,如何解决啊??
显示 mov test,ax
       test dw ?
这2行错误
程序如下
下面是一个简单程序,在AX中放入一个字节的内容并显示:
   cseg segment
    org 100h
    assume cs:cseg,ds:cseg
   start:
    mov bx,cs
    mov ds,bx
    mov ah,'H'
    mov al,'L'
    mov test,ax
    mov al,   ;First byte of test
    call dchar
    mov al,;Second byte of test
    call dchar
    ret
   ;Display the character contained in AL
   dcharproc
    push ax
    push bx
    mov bh,1
    mov ah,0eh
    int 10h
    pop bx
    pop ax
    ret
   dcharendp
   test dw ?
   cseg ends
    end start
页: [1]
查看完整版本: 一个小问题