I want to decompress data that is compressed by using LZMA SDK in MASM32 program.
I found some assembly files such as LzmaDecOpt.asm in the LZMA SDK.
https://github.com/kornelski/7z/blob/main/Asm/x86/LzmaDecOpt.asm
I think this is the decompressor of LZMA for Assembly program.
But I can't understand how to use this to decompress data.
Please explain how to use this to decompress in MASM32 program.
.hfiles use C syntax, so of course you can'tincludethem in an assembly source file. MASM syntax usesexternto declare functions from other files / libraries, as in Calling a standard-library-function in MASM likeEXTERN printf :PROC. I think MASM even allows you to declare prototypes, at least in 32-bit code where it has aninvokedirective, otherwise you're setting up the args yourself so MASM doesn't need to know about args or return values.