mirror of
https://github.com/micropython/micropython.git
synced 2026-04-26 02:40:22 +02:00
b67c55cb4f
This commit optimises the lookup of opcodes' condition codes, in order to take up less code than before. The original data was held in a table containing the condition code value (an incrementing 0-based integer) and the two condition ASCII characters. Given that the condition code value also matches the entry's index in the table, that can be safely omitted. This saves 52 bytes when compiled for Thumb. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>