For a final export to a com file really all you'd need is a straight dump of vga memory, and whatever mode it's in. For something like 80x25 text mode that's just a 4kB dump starting at B800:0000, and for something like Mode 13h, a 64kB dump from A000:0000 (and then the palette if changed from...