Skip to content

JLT should be called JLE. #19

Description

@ClebinhoDaXJ

When regA and regB are equal, CF = 0 and CZ = 1 occurs, which, according to the ISA, activates the JLT. Therefore, the jump also occurs when there is equality; the name JLT is misleading.

Activity

  1. BenBE commented on Apr 27, 2026

    @BenBE

    When regA and regB are equal, CF = 0 and CZ = 1 occurs,

    I assume, you meant CF = 0 and ZF = 1.

    which, according to the ISA, activates the JLT.

    JLT (Jump if less than) should only be active for SF != OF
    JLE (Jump if less or equal) should trigger both on SF != OF or ZF = 1.

    Therefore, the jump also occurs when there is equality; the name JLT is misleading.

    Looking real quick at a reference, I only find: JL and JLE, which both are signed. Should not be confused with JA/JAE and JB/JBE which are the unsigned equivalents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions