Yesterday, I optimized the code for rendering the mini-map, replacing the division and check (mov dl, n; div dl; cmp ah, k) with more compact code: aam n; cmp al, k. At the same time, I found an error in the IDA disassembler. For those interested: small jumps like 66 E9 xx xx (jmp small ...) are traced incorrectly, because the jump with the 66 prefix is performed using IP, not EIP!
Yesterday, I optimized the code for rendering the mini-map, replacing the division and check (mov dl, n; div dl; cmp ah, k) with more compact code: aam n; cmp al, k. At the same time, I found an error in the IDA disassembler. For those interested: small jumps like 66 E9 xx xx (jmp small ...) are traced incorrectly, because the jump with the 66 prefix is performed using IP, not EIP!