PIC IP: Internet Protocol I/O

Calculating IP Checksums

Nikolai Golovchenko says:

; enter with "b" in W

ipsum_running:

    incf   ipcksum_b,f
    btfss  ipcksum_b,0
     goto  l1

    addwf  ipcksum_h,f
    skpnc
     incfsz  ipcksum_l,f
    return
    incf  ipcksum_h,f
    return

l1:
    addwf  ipcksum_l,f
    skpnc
     incfsz  ipcksum_h,f
    return
    incf  ipcksum_l,f
    return

see:

See:

Interested: