|
Algorithm 1: Handling Far Instructions |
-
1:
function HandleFarIns()
-
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
|