Set REG_C to 0 when the buffer is empty

There was leftover code from the old implementation messing up the empty buffer case.