Interesting case. I'm not familiar with BitBLT
codes, do they actually modify
the existing program, or rather do they build small custom ones? Only the
former is what I was thinking of.
It is a typical of designs by Rob Pike, a thing of great elegance.
See here:
https://9p.io/cm/cs/doc/87/archtr.ps.gz
-Steve