It's more complicated then that, the text mode change I made was useless, it's never called. I don't know enough about the upd7220 to really be sure of what is happening except the garbage is the text drawn as pixels.
MSDOS works now though, to bad there's no keyboard yet.
Edit: Worked around graphics corruption, not sure if fix is correct.