Category : Files from Magazines
Archive   : WDJAN92.ZIP
Filename : 3N01059A

 
Output of file : 3N01059A contained in archive : WDJAN92.ZIP
#include
#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");
}


  3 Responses to “Category : Files from Magazines
Archive   : WDJAN92.ZIP
Filename : 3N01059A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/