632 B
632 B
Running
main
This will get 50FPS on an 020, and 25 or lower on an 68EC020 and below.
The best way I can think of to make this way faster is for a script in Ruby or Python to calculate every blitter register for every frame of data for bun renders and clears, store that in a list of words, and rip through those lists in Assembler, shotgunning the values directly into the registers without the C code needing to track bun positions and bun clears. That's a project for another day.
Building
Vamos
You'll want Vamos and SAS/C on Vamos's path:
ruby ./image_converter.rb && touch images.s && vamos -- smake