summaryrefslogtreecommitdiff
path: root/docs/esp8266/tutorial/powerctrl.rst
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2025-10-30 22:47:23 +0100
committerDamien George <damien@micropython.org>2025-11-03 13:53:45 +1100
commit3cd95dda649b1b3c855a577cb8f97c874c7047d6 (patch)
tree26608ef78860dfffc580333677b7cf4483e04128 /docs/esp8266/tutorial/powerctrl.rst
parenta1684ad2c142e804cffce8f4f14b7293c1ac44b4 (diff)
py/asmrv32: Generate better comparison sequences.
This commit changes the sequences generated for not-equal and less-than-or-equal comparisons, in favour of better replacements. The new not-equal comparison generates a sequence of equal size but without the burden of a jump to set the output value, this also had the effect of reducing the size of the code generator as only two opcodes need to be generated instead of three. The less-than-or-equal sequence, on the other hand, is actually two bytes shorter and does not contain any jumps. If Zcb opcodes can be used for performing the final XOR operation then two more bytes could be saved on each comparison. The same remarks about having a shorter generator due to two opcodes being generated instead of three still applies here. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'docs/esp8266/tutorial/powerctrl.rst')
0 files changed, 0 insertions, 0 deletions