Using Tasm 1.4 and trying to create and manipulate local variables in procedure:
findMins PROC
local z:word:1 ;outer loop counter
local j:word:1 ;inner loop counter
mov cx, rows ;outer loop total iterations
mov z, 0
RowsLoop:
push cx ; save outer iterations left
mov cx,cols ; inner iterations
mov j, 2
ColsLoop:
//some code
loop ColsLoop
//some code
loop RowsLoop
ret
ENDP
mov j, 2
this instruction changes both j and z local variables. How should I create variables that seen only inside function and they are different, e.g I don't want to change the second variable with operation mov j, 2
.