主题:我错在哪?
第h行illegal size for operrand
stgm segment stack 's'
dw 32 dup(?)
stgm ends
data segment
b db 'c:\ruanjian\integr~1\test6.txt',0
c dw 1
d dw 1
data ends
ata segment
ata ends
code segment
main proc far
assume cs:code,ds:data,ss:stgm,es:ata
push ax
push bx
push cx
push dx
push ds
push di
mov ax,data
mov ds,ax
mov dx,offset b
mov ah,3dh
mov al,02h
int 21h
mov bx,ax
mov ah,42h
mov cx,0
mov dx,0
mov al,2
int 21h
h: LdS ax,c
mov c,SI
mov d,ds
mov dx,offset c
mov ah,40h
mov cx,4
int 21h
mov bx,ax
mov ah,42h
mov cx,0
mov dx,0
mov al,2
int 21h
mov dx,offset d
mov ah,40h
mov cx,4
int 21h
mov ah,3eh
int 21h
pop di
pop ds
pop dx
pop cx
pop bx
pop ax
ret
main endp
code ends
end main
stgm segment stack 's'
dw 32 dup(?)
stgm ends
data segment
b db 'c:\ruanjian\integr~1\test6.txt',0
c dw 1
d dw 1
data ends
ata segment
ata ends
code segment
main proc far
assume cs:code,ds:data,ss:stgm,es:ata
push ax
push bx
push cx
push dx
push ds
push di
mov ax,data
mov ds,ax
mov dx,offset b
mov ah,3dh
mov al,02h
int 21h
mov bx,ax
mov ah,42h
mov cx,0
mov dx,0
mov al,2
int 21h
h: LdS ax,c
mov c,SI
mov d,ds
mov dx,offset c
mov ah,40h
mov cx,4
int 21h
mov bx,ax
mov ah,42h
mov cx,0
mov dx,0
mov al,2
int 21h
mov dx,offset d
mov ah,40h
mov cx,4
int 21h
mov ah,3eh
int 21h
pop di
pop ds
pop dx
pop cx
pop bx
pop ax
ret
main endp
code ends
end main