# File lib/host_systems/C64.rb, line 24
def C64.to_ascii(b)  
  if (b==0xa) || (b==0x0d)
    return "\n"
  elsif (b==0x40) || (b==0x60)
    return b.chr
  elsif (b==0xA0) || (b==0xE0) #shifted space

    return " "
  else 
    case (b & 0XE0)
      when 0x40,0x60 then return (b^0x20).chr
      when 0xc0 then return (b^0x80).chr
      else
        return (b.chr)
    end
  end
end