4 ms·
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.
by clan 6y ago
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 https://www.youtube.com/watch?v=Imquk_3oFf4
[2] https://nasm.us/ https://nasm.us/
[3] https://www.dosbox.com/ https://www.dosbox.com/
[4] http://www.sizecoding.org/wiki/Memories#Original_release_code_.28complete.29 http://www.sizecoding.org/wiki/Memories#Original_release_cod...
- clan 6y agopvg has in a comment linked to the optimized dosbox config. With that it runs smooth as butter!
- kubanczyk 6y agoI 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 :)
- jeffhuys 6y agoFor 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.
- kawzeg 6y agoUsing `dosbox .` skips two steps by mounting the current directory (at least on linux where I tried it)
- diggernet 6y agoClicked your first link and had the disturbing realization that I was downloading a 48MB video to watch that 256B demo.