a more elegant print_msg for 16 bit code works