News for hackers. Stuff that matters.
Re:Memories – 256 bytes demo winner of Revision 2020 by clan on Tuesday April 28, 2020 @03:54AM (#23004638)
I am always very impressed when I see these demos and how much can be done with so little. If you are like me you just jumped to Youtube[1] to see it in action.

When trying to make my significant other to understand what was happening I wanted to run it myself. I was amazed how simple that was!

- Install the assembler[2]

- Install dosbox[3]

- Get the source[4] and put it into c:\temp\demo\memories.asm

- Start nasm and enter:

    cd c:\temp\demo
    nasm.exe memories.asm -fbin -o memories.com
- Start dosbox and enter:

    mount d c:\temp\demo
    d:
    dir
    memories
- Press [ALT][ENTER] for fullscreen

The dosbox config is not optimized but it runs with sound with the default settings!

For me this is somehow much more impressive than simply watching the video.

[1] https://www.youtube.com/watch?v=Imquk_3oFf4

[2] https://nasm.us/

[3] https://www.dosbox.com/

[4] http://www.sizecoding.org/wiki/Memories#Original_release_cod...

Re:Memories – 256 bytes demo winner of Revision 2020 by jeffhuys on Tuesday April 28, 2020 @07:03AM (#23005768)
For macOS users (with brew):

  brew install dosbox nasm
  nasm memories.asm -fbin -o memories.com
  dosbox
  mount D ~/Development/memories (or whatever)
  D:
  memories
So, almost the same!

Hit FN+Ctrl+F12 to speed it up (it's time-independent, for smoother animations, hit that combination quite a few times).

It didn't output any audio for me, but that's probably fixable.

Re:Memories – 256 bytes demo winner of Revision 2020 by kawzeg on Tuesday April 28, 2020 @10:56AM (#23007588)
Using `dosbox .` skips two steps by mounting the current directory (at least on linux where I tried it)
Re:Memories – 256 bytes demo winner of Revision 2020 by kubanczyk on Tuesday April 28, 2020 @05:04AM (#23005123)
I often need a small script/program as a sample to go under automation/orchestration/ci or some other monstrosity of similar provenance.

It will be fun to replace "sleep 5 && echo ok" with an automated version of such writeup :)

Re:Memories – 256 bytes demo winner of Revision 2020 by diggernet on Thursday April 30, 2020 @03:19PM (#23034936)
Clicked your first link and had the disturbing realization that I was downloading a 48MB video to watch that 256B demo.
Re:Memories – 256 bytes demo winner of Revision 2020 by clan on Tuesday April 28, 2020 @04:30AM (#23004914)
pvg has in a comment linked to the optimized dosbox config. With that it runs smooth as butter!