====== WDIV, DWDIV ====== ''WDIV s1, s2, d'' \\ ''DWDIV s1, s2, d'' \\ These commands divide s1 and s2 and store the result in d and the remainder in d+1. WDIV divides word values and DWDIV divides double word values. ^ ^ P ^ M ^ F ^ S ^ C ^ T ^ D ^ Constants ^ | s1 | | | | | O | O | O | O | | s2 | | | | | O | O | O | O | | d | | | | | O | O | O | | {{ :cubloc:wdiv_dwdiv:dwdiv1.png?nolink |}} {{ :cubloc:wdiv_dwdiv:dwdiv2.png?nolink |}} [[cubloc:index#Ladder_Logic:|Go CUBLOC Ladder Logic home]]