Update ArduboyFX.cpp

Fix return values of readPendingUInt24 readPendingLastUInt24
This commit is contained in:
Mr.Blinky 2022-02-23 16:25:14 +01:00
parent 484a4a8d6b
commit e671fa1fd1
1 changed files with 4 additions and 2 deletions

View File

@ -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)