I should find max in a multidimensional array. But, the elements of the array are given by keyboard, and so is the size of the array. The elements are integers. So, is this correct:
;message for the user to enter the size
;reading the size
i equ -1
j equ 0
loopForI:
inc i
loopForJ:
;message for the user to enter the element
;reading the element
mov ax,size
mul i
add ax,j
add ax,ax; because integer's size is two
mov bx,ax
mov matrix[bx],element
inc j
cmp j,golemina-1
jne loopForJ
jmp loopForI
inc i