flat assembler
Message board for the users of flat assembler.
Index
> DOS > 16 byte demo with graphics and sound |
| Author |
|
|
revolution 18 May 2026, 16:58
In the demoscene, exploring what can be achieved within extreme constraints is a rewarding technical challenge. The following 16 bytes of x86 real-mode DOS assembly code represent a careful exercise in algorithmic density. When executed, it utilizes the computer's video memory as a calculation space to draw an infinite Sierpinski fractal, while simultaneously interpreting that geometry as audio data. Code: int 10h ; 2 bytes mov bh, 0xb8 ; 2 bytes mov ds, bx ; 2 bytes L: lodsb ; 1 byte sub si, 57 ; 3 bytes xor [si], al ; 2 bytes out 61h, al ; 2 bytes jmp L ; 2 bytes https://www.youtube.com/watch?v=MvycyU-kLjg |
|||
|
|
Picnic 19 May 2026, 09:02
Mind-blowing x86 optimization that's absolute fine art.
This could be an extra track on Moroder's Cat People OST. |
|||
|
|
bitdog2u 31 May 2026, 15:32
if you want exit code, this works, it adds 5 bytes, to make it 21 bytes total.
Code: ; jmp L in al,60h cmp al,129 ;ESC key released jnz L ret I couldn't get a Sierpinski fractal out of it. There was some random TEXT LETTERS on the screen, but it ran out of letters and went blank in a couple minutes. I rebooted a few times and wrote some exit code for it. My mini pc speaker was able to make sound like a bearing running dry. But I'm running a p4 in DOS. TINYSIER.COM in the B256.ZIP is a real nice Sierpinski fractal for 55 bytes. DISRUPT.COM is 14 bytes with exit code, & each key press changes the screen, plus you don't need to oil your fan, then find out you didn't need to oil your fan. Hellmood has some great work out there in the wild, 21 are in b256.zip use sstr.com found in dis104.zip in the \ASM\directory SSTR "by hellmood" will get you a list of them. Screen Grabber sg.com will save it to a file sg afile.txt Well, that was the DOS test results, but after I clicked the link: the DOS BOX music was quite well done, & the character interaction with the music, was a good touch. It kinda reminded me of a 6 foot long 2 inch diameter horizontal pipe with small holes drilled in every 6 inches or so on the upper side. Hooked up to a low perssure propane tank & the holes lit on fire. The speakers on each end send sound pressure waves down the pipe & create different height flames comming out, so the flames dance with the sterio music as night beer disappears to a used veggie OIL fire tub. You'll have to instigate dancing girls to get that part started. It's not quite as much fun as programming, but it's a good break from reality : ) Last edited by bitdog2u on 17 Sep 2026, 09:08; edited 1 time in total |
|||
|
|
bitshifter 10 Jul 2026, 08:42
very cool music
warning: assumes initialized register values on load, may not work on all systems shameless plug: my 17 byte fasm graphics demo from almost 20 years ago https://board.flatassembler.net/topic.php?t=9147&postdays=0&postorder=asc&start=0 |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.