Re:Show HN: Attempt to bring a cinematic experience in 256 b...
by flohofwoe on Sunday May 12, 2024 @08:09AM
(#40333783)
I wouldn't be surprised if the same code ported to the x86 instruction set would be more compact before compression (after compression probably closer to each other).
Re:Show HN: Attempt to bring a cinematic experience in 256 b...
by ilmenit on Sunday May 12, 2024 @05:53AM
(#40333265)
Actually with HellMood (one of the x86 sizecoding wizards the best known for https://news.ycombinator.com/item?id=23002874) we were working on a port to FreeDOS x86/FPU, but the personal time did not allow us to finish the port before the competition deadline. Quoting HellMood "i think now that a decent port is possible".
There are a few advantages of WASM/MicroW8 like ability to draw vertical lines, or a palette that can use 8bit RGB (while VGA has 6bits), but the x86 in 16bit real-mode has powerful short CPU and FPU instructions, and you can use code as data (e.g., for IEEE float constants) to further reduce the binary length.
Would it be possible to port to x86/DOS, and keep the same code size? Or is there limitation in the WASM aspect?