Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1410
Changes for hercules/cga/tandy support Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1354