Deterministic bulk-boundary correspondences for skin and edge modes in a general two-band non-Hermitian system