1985 Honda XR 600 R no spark
Yeah Gregg is correct, especially when it's intermittent as you are stating. Start at the beginning with the easiest first. You don't want to just start swapping parts blindly. Motorcycle batteries don't last, in your explanation you said spark is on off some days, is this just on trying to start it or when it is running? How old are plug wires? No cracking or loose connections? All safety switched are good and clean? Kickstand switch, ignition switch, grounds, actual plugs? It's hard to diagnose when it is not happening all the time. But like I said when it does start at the simplest things always, do some testing, work from the start of the system of ignitiin. You know, put in key, check, turn key, turn to start, push start. Nothing? Check battery, battery good? Then check starter, voltage? Good? Then check spark- spark or no? Yes ? Well wait until it don't again. Then check coils and grounds, check coils for proper resistance according to manual, check proper voltage to ecm , check manual or online and it will tell you what to check to confirm that it is working right.
But remember little things first. Batteries, safety switches, grounds, plug wires, plugs, connections and wire condition.
Start at the beginning and if you need any help let me know. All I ride are pre 98 and below Honda's so I'm very familiar with your system.