Re: Design Pattern thoughts
- From: "Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx>
- Date: Fri, 17 Nov 2006 10:57:41 +0100
On Fri, 17 Nov 2006 10:52:39 +0100, Dmitry A. Kazakov wrote:
On Thu, 16 Nov 2006 08:06:48 +0100, Laurent Bossavit wrote:
Here's a poll for the group: what is the smallest, most legible piece of
code (with significant functionality) you've ever seen ? Preferably
source code that is published so we can all learn from the masters.
MOV @-(PC), @-(PC)
Actually, it should be:
MOV -(PC), -(PC)
but, I hope you get the idea.
This is in PDP-11 MACRO-11 assembler. It is the simplest worm. The worm's
body consists out of single machine instruction MOV, which being executed
moves itself to the word before it and then sets the program counter to it.
So the worm advances the memory upward...
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.
- Follow-Ups:
- Re: Design Pattern thoughts
- From: Laurent Bossavit
- Re: Design Pattern thoughts
- References:
- Design Pattern thoughts
- From: robjoel
- Re: Design Pattern thoughts
- From: Phlip
- Re: Design Pattern thoughts
- From: AndyW
- Re: Design Pattern thoughts
- From: Laurent Bossavit
- Re: Design Pattern thoughts
- From: Dmitry A. Kazakov
- Design Pattern thoughts
- Prev by Date: Re: Design Pattern thoughts
- Next by Date: Re: Events
- Previous by thread: Re: Design Pattern thoughts
- Next by thread: Re: Design Pattern thoughts
- Index(es):
Relevant Pages
|