I'm trying to convert an old project I worked on back in the year 2000 using MSVC6 to Visual Studio 2019. Its code for a "Rich Media" player.
The following code compiled fine under MSVC6
// CODEGENX86.H //
#define PLACEHOLDER_32 0xf0f00f0f
// CODEGENX86.C //
_asm jz PLACEHOLDER_32
But now in VS2019 I get ...
"error C2415: improper operand type".
I didn't write this code and I was never good at assembly. I'm hoping
someone can explain to me why it worked under MSVC6 (seems to me it
should NOT have worked there) and how I can get it to work under VS2019.
As far as I can tell, the person who wrote this code was trying to put 4 bytes after jz
which gets overwritten before the line executes.