2009-12-10 00:24:24 +00:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
-- DynASM x64 module.
|
|
|
|
--
|
2015-01-05 22:59:31 +00:00
|
|
|
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
|
2009-12-10 00:24:24 +00:00
|
|
|
-- 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
|
|
|
|
|
2009-12-10 00:24:24 +00:00
|
|
|
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
|
|
|
|
|