MOV AX, height ; start the row counter\r
MOV rowCounter, AX ;\r
MOV DI, poffset ; go to the first pixel\r
- MOV DI, bmpOffset ; go to the bmp pixel\r
+ MOV SI, bmpOffset ; go to the bmp pixel\r
ROW_LOOP:\r
MOV CX, width ; count the columns\r
SCAN_LOOP:\r