How to divide the number 14A162 on the number 1234?


    2 answers 2

    It seems so:

    mov eax, 14A162h mov ebx, 1234h div ebx 

    in eax there will be a quotient, in edx - the remainder

    • 3
      DIV r / m - Indy
    • one
      fail :) well, then mov ebx, 1234h; div ebx - Tim Rudnevsky
     ars3 movlw 0x09 movwf sec movlw 0x00 movwf stp ars4 `movlw 0x03 subwf sec,f movlw 0x01 addwf stp,f btfsc stat,z goto rst1 btfss stat,z goto ars4