Пример #1
0
from tdasm import Tdasm
import renmas.core
from renmas.core import AsmStructures

asm = Tdasm()
AVX = asm.avx_supported()
AVX = False

SSSE3 = asm.cpu["ssse3"]
#SSSE3 = False
SSE3 = asm.cpu["sse3"]
SSE41 = asm.cpu["sse41"]
#SSE41 = False
SSE2 = asm.cpu["sse2"]


def structs(*lst_structs):
    code = ""
    asm_structs = AsmStructures()

    for s in lst_structs:
        struct = asm_structs.get_struct(s)
        if struct is None:
            raise ValueError("Structure " + str(s) + " doesn't exist!")
        code += struct

    return code


assembler = None
Пример #2
0
from tdasm import Tdasm
import renmas.core
from renmas.core import AsmStructures


asm = Tdasm()
AVX = asm.avx_supported()
AVX = False 

SSSE3 = asm.cpu["ssse3"]
#SSSE3 = False
SSE3 = asm.cpu["sse3"]
SSE41 = asm.cpu["sse41"]
#SSE41 = False
SSE2 = asm.cpu["sse2"]

def structs(*lst_structs):
    code = ""
    asm_structs = AsmStructures()

    for s in lst_structs:
        struct = asm_structs.get_struct(s)
        if struct is None:
           raise ValueError("Structure " + str(s) + " doesn't exist!")
        code += struct

    return code
    
assembler = None
Пример #3
0
from tdasm import Tdasm

__asm = Tdasm()
AVX = __asm.avx_supported()
AVX = False 

SSSE3 = __asm.cpu["ssse3"]
#SSSE3 = False
SSE3 = __asm.cpu["sse3"]
SSE41 = __asm.cpu["sse41"]
#SSE41 = False
SSE2 = __asm.cpu["sse2"]