汇编基础问题!50分相送!
代码:
dat segment
db 49,56,100,95,63,75,84,59,60,64,69,70,100,98,72,61,59,82,75,51
s1 db 0
s2 db 0
s3 db 0
s4 db 0
s5 db 0
s6 db 0
dat ends
cod segment
assume cs:cod,ds:dat
start :mov ax,dat
mov ds,ax
mov bx,0
mov cx,20
s1: mov al,[bx]
cmp al,60
jae next1
inc inc s1
next1:inc bx
loop s1
mov bx,0
mov cx,20
s2: mov al,[bx]
cmp al,60
jb next2
cmp 69
ja next2
inc inc s2
next2: inc bx
loop s2
mov bx,0
mov cx,20
s3: mov al,[bx]
cmp al,70
jb next3
cmp 79
ja next3
inc inc s3
next3: inc bx
loop s3
mov bx,0
mov cx,20
s4: mov al,[bx]
cmp al,80
jb next4
cmp 89
ja next4
inc inc s4
next4: inc bx
loop s4
mov bx,0
mov cx,20
s5: mov al,[bx]
cmp al,90
jb next4
cmp 99
ja next5
inc inc s5
next5: inc bx
loop s5
mov bx,0
mov cx,20
s6: mov al,[bx]
cmp al,100
jnz next6
inc inc s6
next6: inc bx
loop s6
mov ah,4c00h
int 21
cod ends
end start
编译obj文件报错:
11.ASM(3): error A2024: Segment parameters are changed
11.ASM(4): error A2024: Segment parameters are changed
11.ASM(5): error A2024: Segment parameters are changed
11.ASM(6): error A2024: Segment parameters are changed
11.ASM(7): error A2024: Segment parameters are changed
11.ASM(8): error A2024: Segment parameters are changed
11.ASM(16): error A2024: Segment parameters are changed
11.ASM(19): error A2009: Symbol not defined: INC
11.ASM(21): error A2026: Reference to multidefined symbol
11.ASM(25): error A2024: Segment parameters are changed
11.ASM(28): error A2056: Immediate mode illegal
11.ASM(30): error A2009: Symbol not defined: INC
11.ASM(31): error A2006: Phase error between passes
11.ASM(32): error A2026: Reference to multidefined symbol
11.ASM(36): error A2024: Segment parameters are changed
11.ASM(39): error A2056: Immediate mode illegal
11.ASM(41): error A2009: Symbol not defined: INC
11.ASM(42): error A2006: Phase error between passes
11.ASM(43): error A2026: Reference to multidefined symbol
11.ASM(47): error A2024: Segment parameters are changed
11.ASM(50): error A2056: Immediate mode illegal
11.ASM(52): error A2009: Symbol not defined: INC
11.ASM(53): error A2006: Phase error between passes
11.ASM(54): error A2026: Reference to multidefined symbol
11.ASM(58): error A2024: Segment parameters are changed
11.ASM(61): error A2056: Immediate mode illegal
11.ASM(63): error A2009: Symbol not defined: INC
11.ASM(64): error A2006: Phase error between passes
11.ASM(65): error A2026: Reference to multidefined symbol
11.ASM(69): error A2024: Segment parameters are changed
11.ASM(72): error A2009: Symbol not defined: INC
11.ASM(74): error A2026: Reference to multidefined symbol
11.ASM(76): error A2050: Value out of range
50466 + 450030 Bytes symbol space free
0 Warning Errors
33 Severe Errors
大侠们帮帮忙!谢谢