News for hackers. Stuff that matters.
Re:What is the coolest thing you can do in ten lines of code? by huhtenberg on Friday December 30, 2011 @11:04PM (#3410118)
Back in real-mode x86 times the coolest thing could've been done in 2 lines

  CLI     ; Disable interrupts
  HLT     ; Halt CPU until next interrupt
This hung the machine dead.
Re:What is the coolest thing you can do in ten lines of code? by spc476 on Saturday December 31, 2011 @04:31AM (#3410550)
Unless there's a memory error (which is hooked up to the NMI line), or on the PCjr, a key was hit on the keyboard (which was hooked up to the NMI).

Neat hack though (and question: why do I remember this stuff?)

Re:What is the coolest thing you can do in ten lines of code? by gsivil on Friday December 30, 2011 @11:24PM (#3410155)
This is not cool in my book.
Re:What is the coolest thing you can do in ten lines of code? by huhtenberg on Saturday December 31, 2011 @12:31AM (#3410244)
... nor is downvoting nerdy posts on HN of all places :)
Re:What is the coolest thing you can do in ten lines of code? by CamperBob on Saturday December 31, 2011 @12:07AM (#3410214)
Not to forget the F00F bug, which did the same thing in full-blown protected mode.