fixed carry usage, rewritten Z register decrement