|I thought I knew what the .COM file format was all about, but now I've just realised something that surprised me.|
I always thought the .COM files were MS-DOS executables and therefore, by implication, 16-bit. But I've just come across 32-bit .COM executables. For example C:\WINDOWS\system32\chcp.com is a 32-bit executable on Windows XP and later.
Is it just me, or did many other people know that .COM files could be 32-bit as well?
How does one create such a file? (The last time I created a .COM file was using the Tiny memory model in a 16-bit version of Visual Studio)