An all-optical flip-flop with inverted output is presented. The flip-flop is realized based on the optical bistability of an injection-locked single-mode Fabry-Perot laser diode (FP-LD). The operation principle is explained and experimental results are presented in this paper. The flip-flop with separate optical set and reset inputs had an on-off contrast ratio of over 35 dB.