Skip to content

More Jump instructions #1

@tyy-dev

Description

@tyy-dev
  • JMPLT sourceAddress, comparisonAddress, destination,
  • JMPGT sourceAddress, comparisonAddress, destination,
  • JMPEQTO sourceAddress, comparisonAddress, destination

These are relatively simply to add and can be solved with just changing the

        /// <summary>
        /// Whether the value in the accumulator is equal to 1 <br></br><see cref="JumpIfInstructionBase.ShouldJump(int)"/>
        /// </summary>
        /// <param name="accumulatorValue">The value of the accumulator.</param>
        /// <returns><c>true</c> if the jump should occur, otherwise <c>false</c>.</returns>
        protected override bool ShouldJump(int accumulatorValue) => accumulatorValue == 1;

to include checking comparisonAddress for these 3.

Also parsing the type using ParseNumberTypeAsType inside of ParseInstructions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions