1
0
mirror of https://github.com/g012/l65.git synced 2024-06-28 18:29:31 +00:00

Compare commits

..

No commits in common. "0a65af8621c08751592022c3b792ba4c50da6ce0" and "990b30f4101155daee8065a76a5198767f7bcfed" have entirely different histories.

View File

@ -242,7 +242,7 @@ M.jr = function(label)
end
if type(x) ~= 'number' then error("unresolved branch target: " .. tostring(x)) end
x = x-1 - offset - rorg(section.org)
if x < -32 or x > 32 then error("branch target out of range for " .. l .. ": " .. x)
if x < -32 or x > 0x32 then error("branch target out of range for " .. l .. ": " .. x)
elseif x >= 0 then
x = 0xc0 + x
return x