FAQ | Points | Add... | Recent posts | Search | Register | Log in


Dzielenie assembler AVR - attiny2313


Post new topic  Reply to topic      Main Page -> Forum Index -> Microcontrollers Generally -> AVR Microcontrollers -> Dzielenie assembler AVR - attiny2313
Author
Message
Constictor
Poziom 11
Poziom 11


Joined: 27 Dec 2005
Posts: 74
Location: Kielce

Post#1 Post from the author of the topic 18 Mar 2010 17:17   

Dzielenie assembler AVR - attiny2313


Witam

Chciałem się dowiedzieć jaki jest rozkaz w assemblerze AVR do attiny2313, żeby podzielić 2 liczby przez siebie? I czy można rejestry czy trzeba a i b?
Wiem, że jest rozkaz DIV, ale do AVR nigdzie go nie widziałem.

Z góry dziękuję za odpowiedź :)
Pozdrawiam
Back to top
   
Google

Google Adsense


Post# Post from the author of the topic 18 Mar 2010 17:17   





Back to top
   
korrus666
Poziom 23
Poziom 23


Joined: 22 Jul 2007
Posts: 2869
Location: Łódź

Post#2 18 Mar 2010 17:20helpful post - solution   

Re: Dzielenie assemblker AVR - attiny2313


Bo ten avr nie ma w asemblerze komendy dzielenia. Musisz sobie sam napisać taką procedurę albo poszukać gotowej w necie. Ja kiedyś napisałem taką prostą działającą na zasadzie odejmowania. Wydajne to to nie jest ale nie wiem jak zrobić to lepiej.
Back to top
   
Google

Google Adsense


Post# 18 Mar 2010 17:20helpful post - solution   





Back to top
   
JarekC
Poziom 16
Poziom 16


Joined: 09 Jan 2003
Posts: 315
Location: "-"

Post#3 18 Mar 2010 20:03   

Re: Dzielenie assemblker AVR - attiny2313


Witam,

Wszystko na temat dzielenia i mnożenia w AVR znajdziesz w nocie aplikacyjnej:

http://www.atmel.com/dyn/resources/prod_documents/doc0936.pdf

Gotowe procedury w :

http://www.atmel.com/dyn/resources/prod_documents/AVR200.zip

Pozdrawiam
JarekC
Back to top
   
Google

Google Adsense


Post# 18 Mar 2010 20:03   





Back to top
   
atom1477
Poziom 25
Poziom 25


Joined: 14 Jul 2005
Posts: 6596

Post#4 18 Mar 2010 20:27   

Re: Dzielenie assemblker AVR - attiny2313


A ATTiny2313 i w ogóle żaden inny procesor AVR nie ma rejestrów A i B.
Back to top
   
tmf
Poziom 24
Poziom 24


Joined: 12 Aug 2009
Posts: 4766
Location: Katowice

Post#5 18 Mar 2010 20:42   

Re: Dzielenie assemblker AVR - attiny2313


E tam nie ma:
.def A =R16
.def B =R17

i juz ma :)
Back to top
   
Google

Google Adsense


Post# 18 Mar 2010 20:42   





Back to top
   
Dar.El
Poziom 24
Poziom 24


Joined: 28 May 2006
Posts: 5075
Location: Warszawa

Post#6 19 Mar 2010 19:22   

Re: Dzielenie assembler AVR - attiny2313


Witam
Na forum też już było trochę dzielenia.
http://www.elektroda.pl/rtvforum/viewtopic.php?t=1265489&highlight=dzielenie+avr
Back to top
   
Post new topic  Reply to topic      Main Page -> Forum Index -> Microcontrollers Generally -> AVR Microcontrollers -> Dzielenie assembler AVR - attiny2313
Page 1 of 1
Similar topics
[Assembler][ATtiny2313][Podstawy] Zaczynamy naukę (30)
AVR atmega8 assembler AVR Studio Pytanko (9)
[Attiny2313][C/AVR Studio] Problem z DDSem na Attiny2313 (10)
[assembler] dzielenie 2 liczb 64bitowych na rejestrach 32bit (3)
AVR C i assembler - drobna prośba. (4)
ASSEMBLER na AVR (3)
Assembler AVR (4)
[Assembler] Dzielenie na dwóch rejestrach 32bit (3)
Assembler 8051 dzielenie 16bitowe (10)
[Assembler] Mnożenie i dzielenie. (11)

Page generation time: 0.071 seconds


FAQ || Administrator || Moderators || Widgets and banners || Contact
elektroda.pl topic RSS feed