From bff79d290a33e806bf7d05a4c867157fb90bda59 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sat, 19 Jun 2021 13:56:40 +0200 Subject: [PATCH] GETPC: Do not manipulate the 32bit return address We can do that offline, saving over 30 bytes of instructions. --- Firmware/asm.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/Firmware/asm.h b/Firmware/asm.h index 896f59bb8..2ffb88ad9 100644 --- a/Firmware/asm.h +++ b/Firmware/asm.h @@ -19,9 +19,6 @@ static inline void GETPC(uint32_t* v) ((uint8_t*)v)[1] = b; ((uint8_t*)v)[2] = c; ((uint8_t*)v)[3] = 0; - - // go back 1 instruction before rcall - *v = (*v - 2) * 2; } #endif