mikepaul-LuaJIT/dynasm/dasm_x64.lua

23 lines
835 B
Lua
Raw Normal View History

------------------------------------------------------------------------------
-- DynASM x64 module.
--
2015-01-05 22:59:31 +00:00
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- This module just sets 64 bit mode for the combined x86/x64 module.
-- All the interesting stuff is there.
------------------------------------------------------------------------------
2015-10-30 11:41:52 +00:00
--unload dasm_x86 if it's already loaded.
if not package then package = {loaded = {}} end --for compat. with minilua
local dasm_x86 = package.loaded.dasm_x86
package.loaded.dasm_x86 = nil
x64 = true -- Using a global is an ugly, but effective solution.
2015-10-30 11:41:52 +00:00
local dasm_x64 = require("dasm_x86")
package.loaded.dasm_x86 = dasm_x86 --put it back
return dasm_x64