ON 20051202@11:24:03 AM at page: http://www.piclist.com/microchip/math/sub/index.htm#38688.3539467593 James Newton[JMN-EFP-786] published post 38688.3539467593
Following on from the multi-byte addition routines by Dwayne Reid and Regulus Berdin this works for 32-bit signed/unsigned subtraction. (only tested in Visual Baisc)

sub32   ;OpD=OpD-OpB
        movf    OpB + 0, W
        subwf   OpD + 0, F

        movf    OpB + 1, W
        skpc
         incfsz OpB + 1, W
          subwf OpD + 1, F

        movf    OpB + 2, W
        skpc
         incfsz OpB + 2, W
          subwf OpD + 2, F

        movf    OpB + 3, W
        skpc
         incfsz OpB + 3, W
          subwf OpD + 3, F
|Delete 'P-' before: '' but after: '