Need help with little assembly language code
init:
ldi r16,(1&lt;&lt;USIWM0)|(1&lt;&lt;USICS1)
out USICR,r16
becomes: USICR = (1&lt;&lt;USIWM0)|(1&lt;&lt;USICS1);
...
uint8_t slaveSPITransfer(uint8_t val)
{
USIDR = val;

USISR = (1&lt;&lt;USIOIF);

while (! (USISR &amp; (1&lt;&lt;USIOIF))); //wait until complete

return USIDR;

}