logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

[ASM] [AVR Studio ] How to divide?

ENTEROO 13 Lip 2011 01:39 1472 2
REKLAMA
  • #1 9712035
    ENTEROO
    Poziom 1  
    How to divide in AVR Assembler? Does not exist any RISC instruction to divide :(
    I am using AVR studio.

    Thanks
  • REKLAMA
  • #2 9712157
    Dżyszla
    Poziom 42  
    I don't know AVR Asm, but if this true, You can always count, how many add intruction can do until overflow (total >= ...). Next decrase it - then You have result (without fraction). If You do sub total and your number, get rest of divide.
REKLAMA