Fixed array access in assembler, TODO fix algorithm
-