Skip to content

Fix example code (bubblesort.asm) #3

Closed

Description

@sql-hkr
No description provided.

Activity

  1. added a commit that references this issue on Oct 22, 2025
    a1f52bc
  2. linked a pull request that will close this issueFix #3 #4on Oct 22, 2025
  3. added a commit that references this issue on Oct 22, 2025
  4. sql-hkr commented on Oct 25, 2025

    @sql-hkr
    OwnerAuthor

    In this example code, we had written BRCS (Branch if Carry Set), but that was incorrect — it should be BRCC (Branch if Carry Cleared).

    The correct code is as follows:

    ; compare A and B (we'll swap if A < B)
    cp r21, r24      ; sets carry if r21 < r24
    brcc no_swap
  5. linked a pull request that will close this issueFix branch instruction in bubblesort example #9on Oct 25, 2025
  6. added a commit that references this issue on Oct 25, 2025
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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions