I am currently using Masm 8.0 which is giving the error message "Invalid instruction operand" with
the movd [edi+eax],MM0 instruction. The code worked fine with Masm 6.14.
The comment next to the 3rd instruction explains what is happening.
movd [edi+eax],MM0 ; If this is changed to movq [edi+eax], MM0 , then
; Masm 8.0 no longer complains, but the video mode is changed
; to a lower resolution ??