pouët.net

Go to bottom

Arachno-Bot by Tomkh

.........................................................................
:                                                                       :
:    ###  ####   ###   #### #   # #   #  ###        ####   ###  #####   :
:   #   # #   # #   # #     #   # ##  # #   #       #   # #   #   #     :
:   ##### ####  ##### #     ##### # # # #   #  ###  ####  #   #   #     :
:   #   # #  #  #   # #     #   # #  ## #   #       #   # #   #   #     :
:   #   # #   # #   #  #### #   # #   #  ###        ####   ###    #     :
:                                                                       :
:    a 256b MS-DOS intro  .  VGA mode 13h  .  PC speaker .  by Tomkh    :
:                                                                       :
.........................................................................


              .        *                     .              *
         *                       .                     .

                    \  \        | |        /  /
                     \  \       | |       /  /
                \     \  \      | |      /  /     /
                 \     \  \_____|_|_____/  /     /
                  \_____\___/         \___/_____/
                  |     /    _________    \     |
                  |    |    /         \    |    |
                  |    |   |  #######  |   |    |        <-- visor
                  |    |    \_________/    |    |
                  |     \        |||      /     |
                  |      \       |||     /      |
                  |              |||            |
                               /#####\
                              /#######\
                             /#########\
                            /###########\
                           /#############\
          ----------------/###############\----------------


  A lone machine patrols a grey plain under a thin starfield. Its mission:
  ERASE ORGANIC LIFE. It works the ground back and forth, firing a red
  laser cone across the field on every pass. Five shots in it halts, holds
  the beam half a second, and fires the sixth - the one that takes the whole
  field. Mission accomplished. Only silence remains.


  RUNNING IT
  ----------

  DOSBox (0.74-3 tested) or real VGA hardware. Give it roughly 10000 cycles
  or more: the intro writes straight to video memory and waits on the
  retrace, so an underclocked machine tears rather than breaks. The sound
  is PC speaker, so make sure that is switched on.


  THE PROCESS
  -----------

  Anthropic's Claude AI models handled everything from visuals to final
  assembly, with no human code written.

  Here are six prompts, from a much longer conversation, that shaped it:

    1. "please create dos intro in asm with binary size <= 256b that
        renders animated walking 3d flat-shaded spiders possibly with
        shadow and orthographic/isometric view"

    2. "can it go in a loop left to right and right to left ? and at some
        point start shooting laser towards the camera? figure out the
        tricks to pack it, golf some existing code, you can do it"

    3. "I don't know how, but please squeze into arachno.asm shooting
        sound when laser fires (can be pc speaker or midi whatever
        smaller) and add centered text"

    4. "i think the story should conclude somehow, so spider shoots few
        laser rounds and then... what do you think should happen?"

    5. "i'm thinking maybe you can squeeze in some static stars above
        horizon"

    6. "great job, but i liked the wide visor, please find 1b saving
        without sacrificing any visual aspect"


  INSIDE THE 256 BYTES
  --------------------

  One triangle-wave routine drives the patrol position, the leg gait, the
  foot lift (sampled a quarter phase away) and even the body silhouette.
  The rest is bought with tricks:

    * the frame counter lives in the zero word DOS leaves on the stack
    * the banner's '$' terminator is really the opcode byte of the AND
      instruction that happens to follow the text
    * the starfield is the program's own machine code read as 16-bit
      screen offsets - stars landing below the horizon erase themselves
      on the first frame, and the sky above is never cleared again
    * the laser's pitch is the spider's x coordinate, so the sweep is free
    * the ending re-enters the laser loop with an oversized cone: the row
      arithmetic wraps the segment and paints all 64000 bytes in one frame
    * salc, an undocumented one-byte instruction, stands in for sbb al,al



                        . . . . . . . . . . . . .

                   256 bytes.  One sector.  Eight legs.
Go to top