Ответ:
use16
org 100h
mov cx,[_arr.count]
lea si,[_arr]
loop0:
mov bx,[si]
mov ax,bx
cwd
div [_a]
or dx,dx
jnz no
div [_b]
jz no
mov [_w],1
jmp done
no:
add si,2
dec cx
jnz loop0
done:
ret
_w dw 0
_a dw 3
_b dw 5
_arr dw 1,5,0,2,9,5,2
_arr.count dw ($-_arr)/2
Объяснение:
Так или нет?
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
use16
org 100h
mov cx,[_arr.count]
lea si,[_arr]
loop0:
mov bx,[si]
mov ax,bx
cwd
div [_a]
or dx,dx
jnz no
mov ax,bx
cwd
div [_b]
or dx,dx
jz no
mov [_w],1
jmp done
no:
add si,2
dec cx
jnz loop0
done:
ret
_w dw 0
_a dw 3
_b dw 5
_arr dw 1,5,0,2,9,5,2
_arr.count dw ($-_arr)/2
Объяснение:
Так или нет?
1.Windows.asm(85) : error A2155: cannot use 16-bit register with a 32-bit address
1.Windows.asm(82) : error A2006: undefined symbol : count