Re: [jallist] CLRWDT in if structure

7 views
Skip to first unread message

Rob CJ

unread,
May 30, 2023, 1:25:34 PM5/30/23
to jallist
Hi Chris,

I looked at generated the assembly code and it looks OK. It jumps over the assembly instruction if pin_a0 is set to 1.

;   29  if pin_A0 == 0 then
                               movlb    0
                               btfss    v_porta, 0 ; pin_a0
;   30         ASM CLRWDT
                               clrwdt  
;   31  end if

Which version of the compiler are you using? Did you set certain optimizations?

Thanks

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens Chris Peeters <chris.p...@gmail.com>
Verzonden: dinsdag 30 mei 2023 12:45
Aan: jallist <jal...@googlegroups.com>
Onderwerp: [jallist] CLRWDT in if structure
 
Can somebody explain why this does not work ? Tested it on a PIC16F18313 with only this to test. It works fine if i delete the if structure.

 if pin_A0 == 0 then
        ASM CLRWDT
 end if

Kind regards
Chris Peeters

--
You received this message because you are subscribed to the Google Groups "jallist" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallist+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallist/987245cf-8436-4649-8b69-f1bfdee7f071n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages