Your jumps are unconditional. Should they be? As a side note, <cp 0> can be replaced with <or a>. > call _divHLbyA > cp 0 > jp COMPOSITE > jr Initial_Check_2