missing operator in expression 该怎么办?
code segment public
assume cs:code ,ds: code
org 100h
start: jmp begin
str1 db 'The date is: $'
str2 db 2 dup(0),'/'
str3 db 2 dup(0),'/'
str4 db 2 dup(0),'/'
month db 0
day db 0
year dw 0
;Convert number to ASCII
num2asc proc
mov si ,10
next: xor dx,dx
div si
add dx,'0'
dec bx
mov [bx],dl
or ax,ax
jnz next
ret
num2asc endp
;main program
begin: mov ax,cs
mov ds,ax
mov ah,2ah
int 21h
mov byte ptr month ,dh
mov byte ptr day,dl
mov word ptr year,cx
mov bx, offest str2+2
xor ax,ax
mov al, byte ptr month
call num2asc
mov bx, offest str3+2
xor ax,ax
mov al, byte ptr day
call num2asc
mov bx, offest str4+4
mov al, byte ptr year
call num2asc
mov al, offest str1
mov ah,09h
int 21h
mov ah,4ch
int 21h
code ends
end start
程序如上,但ml .asm时出现
missing operator in expression
出现的行是32,36,40,43 都是有offest的行,,求好人帮忙