Update ArduboyFX.cpp
Fix return values of readPendingUInt24 readPendingLastUInt24
This commit is contained in:
parent
484a4a8d6b
commit
e671fa1fd1
|
@ -265,9 +265,10 @@ uint24_t FX::readPendingUInt24()
|
|||
asm volatile
|
||||
(
|
||||
"call ArduboyFX_cpp_readPendingUInt16 \n"
|
||||
"mov %C[val], r25 \n"
|
||||
"mov %B[val], r24 \n"
|
||||
"call ArduboyFX_cpp_readPendingUInt8 \n"
|
||||
"mov %A[val], r24 \n"
|
||||
"mov %C[val], r25 \n"
|
||||
: [val] "=&r" (result)
|
||||
: "" (readPendingUInt16),
|
||||
"" (readPendingUInt8)
|
||||
|
@ -287,9 +288,10 @@ uint24_t FX::readPendingLastUInt24()
|
|||
asm volatile
|
||||
(
|
||||
"call ArduboyFX_cpp_readPendingUInt16 \n"
|
||||
"mov %C[val], r25 \n"
|
||||
"mov %B[val], r24 \n"
|
||||
"call ArduboyFX_cpp_readPendingLastUInt8 \n"
|
||||
"mov %A[val], r24 \n"
|
||||
"mov %C[val], r25 \n"
|
||||
: [val] "=&r" (result)
|
||||
: "" (readPendingUInt16),
|
||||
"" (readPendingLastUInt8)
|
||||
|
|
Loading…
Reference in New Issue