帮忙看一下汇编语言a2070错误 15
DATASSEGMENTbufdb100db?db100dup(?)BUFBdb100db?db100dup(?)string1db"Pleaseinput10numbe...
DATAS SEGMENT
buf db 100
db ?
db 100 dup(?)
BUFB db 100
db ?
db 100 dup(?)
string1 db "Please input 10 numbers:$" ;字符串以$结束
string2 db "There are: $"
string3 db " positive numbers.$"
STRING4 DB "The positive numbers are $"
;此处输入数据段代码
DATAS ENDS
STACKS SEGMENT
;此处输入堆栈段代码
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
A1: mov ah,09H ;显示Please input 10 numbers:
mov dx,offset string1
int 21h
INPUT:
mov ah,0AH
MOV DX,OFFSET BUF
INT 21H
FIND:
mov di,00h ;计数负数的个数
mov si,02h
again1:
mov bx,offset BUF
mov aX,[bx+si]
CMP AX,0
JL k
AGAIN2:
inc si
cmp si,11h
jg l
jmp again1
l:
P1:
MOV AH,09H
MOV DX,OFFSET STRING2
INT 21H
MOV AH,09H
MOV DX,DI
INT 21H
MOV AH,09H
MOV DX,OFFSET STRING3
INT 21H
P2:
MOV AH,09H
MOV DX,OFFSET STRING4
INT 21H
MOV BL,BUFb+1
MOV BH,0
MOV sI,OFFSET BUFb+2
MOV BYTE PTR[BX+sI],'$'
MOV AH,09H
INT 21H
MOV AH,02H
MOV DL,0AH
INT 21H
k:
mov bp,offset BUFB
MOV byte ptr[bp+SI],AX ????????????????????
inc di
JMP AGAIN2
MOV AH,4CH
INT 21H
CODES ENDS
END START
画问号的那一行显示error a2070 无效的参数
为什么会错?谢 展开
buf db 100
db ?
db 100 dup(?)
BUFB db 100
db ?
db 100 dup(?)
string1 db "Please input 10 numbers:$" ;字符串以$结束
string2 db "There are: $"
string3 db " positive numbers.$"
STRING4 DB "The positive numbers are $"
;此处输入数据段代码
DATAS ENDS
STACKS SEGMENT
;此处输入堆栈段代码
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
A1: mov ah,09H ;显示Please input 10 numbers:
mov dx,offset string1
int 21h
INPUT:
mov ah,0AH
MOV DX,OFFSET BUF
INT 21H
FIND:
mov di,00h ;计数负数的个数
mov si,02h
again1:
mov bx,offset BUF
mov aX,[bx+si]
CMP AX,0
JL k
AGAIN2:
inc si
cmp si,11h
jg l
jmp again1
l:
P1:
MOV AH,09H
MOV DX,OFFSET STRING2
INT 21H
MOV AH,09H
MOV DX,DI
INT 21H
MOV AH,09H
MOV DX,OFFSET STRING3
INT 21H
P2:
MOV AH,09H
MOV DX,OFFSET STRING4
INT 21H
MOV BL,BUFb+1
MOV BH,0
MOV sI,OFFSET BUFb+2
MOV BYTE PTR[BX+sI],'$'
MOV AH,09H
INT 21H
MOV AH,02H
MOV DL,0AH
INT 21H
k:
mov bp,offset BUFB
MOV byte ptr[bp+SI],AX ????????????????????
inc di
JMP AGAIN2
MOV AH,4CH
INT 21H
CODES ENDS
END START
画问号的那一行显示error a2070 无效的参数
为什么会错?谢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询