Skip to content

Add missing instructions BRBC and BRBS #6

@Flu

Description

@Flu

BRBC – Branch if Bit in SREG is Cleared

Description

Conditional relative branch. Tests a single bit in SREG and branches relatively to the PC if the bit is cleared. This
instruction branches relatively to the PC in either direction (PC - 63 ≤ destination ≤ PC + 64). Parameter k is the offset
from the PC and is represented in two’s complement form.

BRBS – Branch if Bit in SREG is Set

Description

Conditional relative branch. Tests a single bit in SREG and branches relatively to the PC if the bit is set. This
instruction branches relatively to the PC in either direction (PC - 63 ≤ destination ≤ PC + 64). Parameter k is the offset
from the PC and is represented in two’s complement form.

More information on these instructions:

https://ww1.microchip.com/downloads/en/DeviceDoc/AVR-InstructionSet-Manual-DS40002198.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    emulator internalMods on the internal emulator API or functionalityenhancementNew feature or requestgood first issueGood for newcomershacktoberfest-2025Perfect bugs/enhancements for Hacktoberfest 2025not a priorityEnhancements or bugs that do need to be resolved but are not a priorityparserConcerning the parser/fron-end

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions