Re: Design Pattern thoughts



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
.



Relevant Pages

  • Re: Index override possible with STOS?
    ... Jim Leonard wrote: ... > You are correct sir! ... > happen and credit you in my source code. ... mov al, ...
    (comp.lang.asm.x86)
  • Re: HAY Herbert, wanna write a legal PE executable ?
    ... The source code for it is in the ... masm32 project under the name masm1k.exe. ... I'm not within your hat-game yet, and I wont join in anyway. ... 210 BE 00004000 MOV esi,400000h ...
    (alt.lang.asm)
  • Re: Design Pattern thoughts
    ... source code that is published so we can all learn from the masters. ... MOV @-, @- ... It is the simplest worm. ...
    (comp.object)
  • Re: Disassembler
    ... > that allows ndisasm to produce something more like source code. ... mov eax, ... int 0x80 ... int main(int argc, char **argv) ...
    (alt.lang.asm)
  • Re: US Military Dead during Iraq War
    ... >>> Please post your source code. ... exit_ok: xor eax,eax ... getindex: mov ebx,65 ... scramble incbin "scramble.txt" ...
    (alt.lang.asm)