Skip to main content
. 2023 Nov 26;23(23):9417. doi: 10.3390/s23239417
Algorithm 1: Handling Far Instructions
  •  1:

    function HandleFarIns(ins)

  •  2:

         if IsFarIns(ins) then

  •  3:

               targetAddress ← GetTargetAddress(ins)

  •  4:

               if targetAddress is valid then

  •  5:

                     DeleteInstruction(ins)

  •  6:

                     BypassHG(ins)

  •  7:

                     InsertDirectJump(GetCurrentAddress(ins), targetAddress)

  •  8:

               else

  •  9:

                     HandleException()

  • 10:

            end if

  • 11:

        end if

  • 12:

    end function