Category : Files from Magazines
Archive   : WDJAN92.ZIP
Filename : 3N01059A
#include
/*
* Reliable NEC V20 detection
* Written by Anthony V. Ingenoso
*/
void main(void)
{
_BX = 0x00ff;
_AX = 0x00ff;
__emit__(0xd4, 16); /* mutant AAM (splits nibbles in AL into 0F0F in AX */
__emit__(0xd5, 16); /* mutant AAD (glue nibbles back into 00FF in AX */
if (_AX != _BX)
puts("This is a V20 CPU\n");
else
puts("This isn't a V20\n");
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/