home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / set6x86.zip / test_bug.c < prev   
C/C++ Source or Header  |  1997-12-14  |  296b  |  12 lines

  1. /* This program is DANGEROUS: it will lock (freeze) your system */
  2. /* Read all the available documentation before executing it */
  3.  
  4. static unsigned char c[4] = {0x36, 0x78, 0x38, 0x36};
  5. main()
  6. {
  7. asm ("movl    $c, %ebx\n\t"
  8. "again:    xchgl    (%ebx), %eax\n\t"
  9.     "movl    %eax, %edx\n\t"
  10.     "jmp    again\n\t");
  11. }
  12.