By the way, thanks so much for sharing the code! I'm porting my Steam game, Linsips, which has an MSDOS aesthetic, to actual MSDOS with CGA graphics, and your optimizations are incredible. Thanks a lot!