<div dir="ltr">Z fora Arduino : <br><br>You can also mix C and assembly using the "asm" pseudo-function. By
using the "naked" attribute for functions, you can write your entire
program in assembly code, but from within a C file so that the compiler
takes care of all the labels, section directives, etc. For example:<br><div class="gmail-codeheader">Code: <a class="gmail-codeoperation">[Select]</a></div><pre style="margin:0px;padding:0px"><code class="gmail-bbc_code" style="max-height:none;height:auto">void somefunction(void) __attribute__((naked))<br>{<br> asm volatile ("<br><br> ; your assembly code here<br><br> ");<br>}</code></pre></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Zdravi<br>Jirka Sloupenský OK1MWW</div></div>
<br><div class="gmail_quote">Dne 5. prosince 2017 22:00 Radek Koutsky <span dir="ltr"><<a href="mailto:radek.koutsky@gmail.com" target="_blank">radek.koutsky@gmail.com</a>></span> napsal(a):<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Je pravda, že nejsem příznivcem této "vychytávky" nicméně chcete mi říct, že v Arduino nelze praktikovat assembler?<br>
<br>
<br>
<br>
R.<br>
<br>
-----Original Message-----<br>
From: Hw-list [mailto:<a href="mailto:hw-list-bounces@list.hw.cz">hw-list-bounces@list.<wbr>hw.cz</a>] On Behalf Of Petr Labaj<br>
Sent: Tuesday, December 5, 2017 9:39 PM<br>
To: <a href="mailto:hw-list@list.hw.cz">hw-list@list.hw.cz</a><br>
Subject: Re: Relokace pinu SPI na arduino mega<br>
<br>
Pane kolego ... Arduino, Arduino.<br>
Tam se to takhle nedělá ...<br>
<br>
PL<br>
<br>
********************<br>
<br>
Dne 5.12.2017 v 21:32 Radek Koutsky napsal(a):<br>
> Zdali jste středně pokročilým uživatelem, tak SPI knihovnu zvládnete napsat během pár minut.<br>
______________________________<wbr>_________________<br>
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a> <a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a> <a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/<wbr>listinfo/hw-list</a><br>
<br>
______________________________<wbr>_________________<br>
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/<wbr>listinfo/hw-list</a><br>
</blockquote></div><br></div>