I have an assembly loop:
mov dx, [block_pos] mov bx,offset GameBoard add bx, dx ; bx now holds the address of the player mov cx,5 rows_loop: add bx,COL_NUM inc rows_counter cmp [bx],'_' je print_rows loop rows_loop I'm adding to bx the number of cols in the board, and each time I check if there is a wall in there.
And somehow, when [bx] is equal to '_' (a wall in the game), it won't jump to print_rows
After many tries, I'm pretty sure it's something with the actual syntax or something else instead of the logic behind the code.