Closed Erol-2022 closed 7 months ago
Asmc (and Masm) wont allow a direct redefinition of symbols like this. The syntax is:
ALIAS <alias> = <actual-name>
It's possible to use the UNDEF directive here thought:
.386
.model flat,stdcall
option casemap:none
printf proto c :ptr, :vararg
OutputText proto c :ptr, :vararg
undef OutputText
ALIAS <OutputText>=<printf>
.code
OutputText("%s(%d)\n", __FILE__, __LINE__)
end
Hi Nidud,
Thanks for the explanation. I tested your example code.
Hi Nidud,
Poasm v12 can assemble the code below without any issues :
printf is exported by msvcrt.lib The purpose is to map the new symbol OutputText to the printf function.
Trying to assemble with asmc :