From CloudModding MM Wiki

Documentation for this module may be created at Module:Addresses/doc

-- module for anything required in handling game addresses

local p = {}

local radixfunc = require("Module:Radix");

-- meant to take an offset relative to the file, and transform it to an offset
-- within a (hypothetically decompressed) ROM.
function p.OffsetAddress(frame)
    local fileaddr = radixfunc.parse_int(frame.args[1]);
    local offset = radixfunc.parse_int(frame.args[2]);

    return radixfunc.write_num(fileaddr + offset, 16);
end

return p;