From c8f4ab4f060f73687b11741bdfceffb3ea5f3df5 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Wed, 12 Jan 2022 22:09:25 +0100 Subject: [PATCH] doc --- .../src/prog8/compiler/astprocessing/BeforeAsmAstChanger.kt | 2 +- docs/source/syntaxreference.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/prog8/compiler/astprocessing/BeforeAsmAstChanger.kt b/compiler/src/prog8/compiler/astprocessing/BeforeAsmAstChanger.kt index 5e7bccdd1..877334b2e 100644 --- a/compiler/src/prog8/compiler/astprocessing/BeforeAsmAstChanger.kt +++ b/compiler/src/prog8/compiler/astprocessing/BeforeAsmAstChanger.kt @@ -223,9 +223,9 @@ internal class BeforeAsmAstChanger(val program: Program, private val options: Co // TODO: somehow figure out if the expr will result in stack-evaluation STILL after being split off, // in that case: do *not* split it off but just keep it as it is (otherwise code size increases) - // TODO: do NOT move this to an earler ast transform phase (such as StatementReorderer or StatementOptimizer) - it WILL result in larger code. // TODO: this should be replaced by a general expression-evaluation optimization step. // the actual conditional expression in the statement should be no more than VARIABLE SIMPLE-EXPRESSION + // NOTE: do NOT move this to an earler ast transform phase (such as StatementReorderer or StatementOptimizer) - it WILL result in larger code. var leftAssignment: Assignment? = null var leftOperandReplacement: Expression? = null diff --git a/docs/source/syntaxreference.rst b/docs/source/syntaxreference.rst index feb00d3da..45b5b18d7 100644 --- a/docs/source/syntaxreference.rst +++ b/docs/source/syntaxreference.rst @@ -805,7 +805,7 @@ where can be just a single statement for instance just a ``goto``, } -The XX corresponds to one of the eigth branching instructions so the possibilities are: +The XX corresponds to one of the processor's branching instructions, so the possibilities are: ``if_cs``, ``if_cc``, ``if_eq``, ``if_ne``, ``if_pl``, ``if_mi``, ``if_vs`` and ``if_vc``. It can also be one of the four aliases that are easier to read: ``if_z``, ``if_nz``, ``if_pos`` and ``if_neg``.