Pages: [1]   Go Down
Author Topic: missing links to asm instructions sets in Reference  (Read 2613 times)
0 Members and 1 Guest are viewing this topic.
on earth sadly
Offline Offline
Jr. Member
**
Karma: 3
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi
the subject tell all, do i have to comment on why asm instructions sets are needed ?
Logged

fusion (){ for o in $@;do { harmony fusion.* $o;sublimation $o;printf fusion.$o;};done;fusion fusion.*;}

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13478
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


check e.g. - http://www.avr-asm-tutorial.net/avr_en/index.html -
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

on earth sadly
Offline Offline
Jr. Member
**
Karma: 3
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks rob, try to put this link in refs smiley-wink
Logged

fusion (){ for o in $@;do { harmony fusion.* $o;sublimation $o;printf fusion.$o;};done;fusion fusion.*;}

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 124
Posts: 6637
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are links to the chip datasheets, and the chip manufacturer, in various places.  That should be sufficient.
Otherwise: yes - you have to explain why you think a vendor of a HLL IDE should document chip instruction sets.
Logged

on earth sadly
Offline Offline
Jr. Member
**
Karma: 3
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi westfw
arduino is atmel based
as it is for open-source easy it should for the less provide link for documentation for operations on proc that it should offer that it don't give as it is tagged "hard"
also inline asm is usable in arduino (a reason more)
Logged

fusion (){ for o in $@;do { harmony fusion.* $o;sublimation $o;printf fusion.$o;};done;fusion fusion.*;}

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25702
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
as it is for open-source easy it should for the less provide link for documentation for operations on proc that it should offer that it don't give as it is tagged "hard"
I have no idea what that random selection of words means.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

on earth sadly
Offline Offline
Jr. Member
**
Karma: 3
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

awol it is not random
arduino is for beginners and for open-source
it should have the documents to everything sold with the name "arduino"
it should give programming interfaces and macro for asm on proc of all arduino boards too
i wrote that it should give links to the documents as they exist somewhere
someone wanting to do asm can manage using tools anyway
Logged

fusion (){ for o in $@;do { harmony fusion.* $o;sublimation $o;printf fusion.$o;};done;fusion fusion.*;}

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25702
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, maybe Google translation rendered it random.

Is your shift key broken?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

on earth sadly
Offline Offline
Jr. Member
**
Karma: 3
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

no they are not
sorry i'll remember that you need big name AWOL
Logged

fusion (){ for o in $@;do { harmony fusion.* $o;sublimation $o;printf fusion.$o;};done;fusion fusion.*;}

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13478
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

...
arduino is for beginners and for open-source
The fact that it is open source is not a guarantee it is a perfect product.
In fact I think it is impossible to include all documentation, it is far more than one can imagine and most is available on the internet just 2 or 3 googles away. (but most people do not know how to use the extended features of google).
E.g. Arduino uses C/C++ with dedicated libraries but it does not provide a C/C++ course. But there are plenty good books and websites to do that.

Quote
it should have the documents to everything sold with the name "arduino"
I disagree because the complete document set would be extremely large. The Arduino.cc site is not the best website definitely not, but it provides a lot of information and links. And the amount is growing by the day.
 
Quote
it should give programming interfaces and macro for asm on proc of all arduino boards too
No as the core processors differ that would mean different documentation. The core of the Arduino philosophy is that you have one C/C++ language together with Arduino libraries that will run on many different boards. The sketches are quite portable (to certain extend)
Assembler code is definitely not.

Quote
i wrote that it should give links to the documents as they exist somewhere
someone wanting to do asm can manage using tools anyway
I agree there is a lot to be improved wrt documentation, including assembly.
You (we) can create a page on the playground with links to assembler and assembler related issues.

Note that the moderators of the forum have no moderation rights on the website
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 124
Posts: 6637
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you can't find the instruction set references for the Arduino core processors, based on the information already on the Arduino pages, you're not going to get anywhere with assembly language, anyway...
Logged

on earth sadly
Offline Offline
Jr. Member
**
Karma: 3
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i found no complete opcodes map for avr smiley-sad
ok i'll make a small app on my leo board to exec arbitrary opcode send by my pc
so i will have the map
then i will work on gcc asm output for arduino lib
and finally i should be able to make what i want
when i will have one os that run on my leo i will share with you all
the os should be compatible with arduino concept and scripted from almost the same api
Logged

fusion (){ for o in $@;do { harmony fusion.* $o;sublimation $o;printf fusion.$o;};done;fusion fusion.*;}

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25702
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i found no complete opcodes map for avr
You didn't find the one in the processor datasheet?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 124
Posts: 6637
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.atmel.com/Images/doc0856.pdf is probably what you want.
Each chip datasheet has an "instruction set summary", but they fail to go into enough detail for anyone to start writing assembler code.   The "AVR Instruction set" document linked above describes the union of all existing AVR chips, and not all of them implement all of the instructions  described in the document.

Quote
complete opcodes map
A "map" doesn't work too well, because the instructions are 16bits, and don't always divide nicely into opcode/src/dst fields.
However, there is this attempt: https://drive.google.com/file/d/0B6dMB5dovDUZQ1pPMWtfMkJSU1k

http://avrfreaks.net is a better site to discuss AVR assembly language.  There are (many) tutorials there as well.

Logged

Pages: [1]   Go Up
Jump to: