I haven't coded in ASM on PIC's before, but the general procedure is:
1. Set up A/D Converter control bits (ADCON0, per the tutorials you provided)
2. Set up clocking ratio for correct settling time
3. Initiate ADC sample
4. Wait for sample to become available
5. Read value from register
6. Make if statement to compare ADC value to the value that represents 3.6V and/or 3.2V. Start simple with a single if that compares the ADC value to the mid-point voltage value (if 0-5V range, and 10 bit resolution 0-1023, then 3.4V would be 696). Adding hysteresis in code requires you to store the previous state, so you can use a pair of logic statements to select your output state, depending on if you've passed your toggling threshold (3.2V or 3.6V)
7. Once you know the high-low condition, set the output pin accordingly.
In general with anything coding, start with some simple code, run it, see what it does and how it works. If incorrect, debug it, try again. Once you get that part working, add some more code, run again, debug.... repeat.