I use another way how to find max value in array.
I used MS Visual Studio.
include
define LEN 6
using namespace std;
int task1();
int main() {
cout << "Task 1: " << task1() << endl;
return 0;
}
int task1() {
int mas[LEN] = { 1, 2, 7, 4, 5, 6 };
__asm {
xor eax, eax
mov ecx, LEN
cycle_mark :
mov edx, [mas + 4 * ecx]
cmp eax, edx
jl max_mark
jg check_mark
max_mark :
mov eax, edx
check_mark :
dec ecx
cmp ecx, 0
jne cycle_mark
}
}