flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Extended headers and extra imports

Author
Thread Post new topic Reply to topic
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 07 May 2010, 17:54
mindcooler,

Those macros do almost as you wish. I'd rather not modify standard import arguments' signature, probably this will do?
Code:
import  rtl60="rtl60.bpl",\
        Move(3), "@System@Move$qqrpxvpvi",\
        UnicodeNToUtf8(4), "@System@UnicodeToUtf8$qqrpcuipbui"
;...
import  rtl60,\
        UnicodeToUtf8(3), "@System@UnicodeToUtf8$qqrpcpbi"    
First «name»="«string»" (="«string»" is optional if already used in import macro) gives pair for old library macro, following «label»(«count»), "«string»" gives pairs for old import macro and value for «label»% constant.

These functions use Borland fastcall calling conventions, another macro (bfinvoke)? Or better, calling convention can be declared right in import statement, saved in some constant and recognized by invoke macro.

System::UnicodeToUtf8() is polymorphic, thus different labels.
Post 07 May 2010, 17:54
View user's profile Send private message Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler 07 May 2010, 19:44
Yeah, something like that would be great.

I will probably not be using borland libraries, but there doesn't seem to be a fastcall macro, direct or indirect, in proc32.inc. I take that it isn't that common.
Post 07 May 2010, 19:44
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.