Fix #3
Merge pull request #4 from sql-hkr/fix/#3
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
Merge pull request #9 from sql-hkr/fix/#3
Activity
Fix #3
Merge pull request #4 from sql-hkr/fix/#3
sql-hkr commentedon Oct 25, 2025
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:
Merge pull request #9 from sql-hkr/fix/#3