We consider the generation of high-energy neutron and n~ ),-quanta inside magnetic loops on the Sun. Using Monte Carlo simulations we investigate the influence of pitch-angle diffusion upon the characteristics of secondary emission. We consider various cases of diffusion on exterior MHD-turbulence as well as on Alfv6n waves generated by accelerated particles through the cyclotron instabihty. We compare the calculated results to SMM flare observations and show that the observational data on the 3 June, 1982 flare do not contradict the assumption of the ~mpulsive phase acceleration of all the protons, given that the ener~ spectrum of the accelerated particles is an energy power law. 96 v.G. GUEGLENKO ET AL.