I compiled them into a DLL and use it in this UDF.
Loot at the example script first:
#include <ASM.au3> ; Initial an asm object Global $Asm = AsmInit() Demo1() Func Demo1() ; Demo 1: Using Parameters AsmReset($Asm) AsmAdd($Asm, "push ebp") AsmAdd($Asm, "mov ebp, esp") AsmAdd($Asm, "mov eax, [ebp + 08]") AsmAdd($Asm, "add eax, [ebp + 0c]") AsmAdd($Asm, "pop ebp") AsmAdd($Asm, "retn 8") ConsoleWrite(String(AsmGetBinary($Asm)) & @CRLF) $Ret = MemoryFuncCall("int", AsmGetPtr($Asm), "int", 1, "int", 2) MsgBox(0, "Demo 1: Using Parameters", "1 + 2 = " & $Ret[0]) EndFunc ; Release the asm object AsmExit($Asm) Exit
There are more examples including read Time-Stamp counter, using label,
call AutoIt function from assembly, and a assembly crc32 routine in the archive.
Have fun!
asm.zip (36.4K)
Number of downloads: 542

Sign In
Register
Help

MultiQuote