try further fixing of character_number calculation.
fix some irregularities in character generator screen ram buffer
handling.