I am not too good with assembly, but it seems that the reverse operation is performed in-place, and the result is then stored in x. I tried deleting the return statement, and the code compiles, but with a warning for missing return statement in a non-void function.
There is no
byte result;
in thereverse
function anymore, preventing the compilation: https://github.com/SpenceKonde/ATTinyCore/blob/1747efb854aba023332a5808bce5dee2b901fdc4/avr/libraries/SPI/SPI.cpp#L282-L302I am not too good with assembly, but it seems that the reverse operation is performed in-place, and the result is then stored in
x
. I tried deleting thereturn
statement, and the code compiles, but with a warning for missingreturn
statement in anon-void
function.