NO

Author Topic: POH2INC example  (Read 3803 times)

Offline Vortex

  • Member
  • *
  • Posts: 865
    • http://www.vortex.masmcode.com
POH2INC example
« on: April 22, 2012, 08:12:13 PM »
With thanks to Pelle, now we have the POH2INC tool converting C to assembler include files.

Here is a quick example.

test.h :

Code: [Select]
extern char * __stdcall SearchNullorCRorQuote(char *str);
extern char * __stdcall SearchQuoteOrNull(char *str);
extern char* __stdcall GetFilePath(char *str,char *str2);
extern void __stdcall szCatStr(char *str,char *str2);
extern char * __stdcall AnalyzeFunc(char *str);
extern int __stdcall NumbOfParams(char *str);
extern int __stdcall szCopy(char *str,char *str1);
extern int __stdcall WriteFileToDisc(char *str,char *str2,int size);
extern char* __stdcall GetFileExtension(char *str);
extern int  __stdcall szCmp(char *str,char *str2);
extern int __cdecl wsp(char *str,char *str1,...);
extern void __stdcall StdOut(char *str);

Code: [Select]
poh2inc.exe test.h
test.inc :

Code: [Select]
SearchNullorCRorQuote PROTO STDCALL str:PTR BYTE
SearchQuoteOrNull PROTO STDCALL str:PTR BYTE
GetFilePath PROTO STDCALL str:PTR BYTE, str2:PTR BYTE
szCatStr PROTO STDCALL str:PTR BYTE, str2:PTR BYTE
AnalyzeFunc PROTO STDCALL str:PTR BYTE
NumbOfParams PROTO STDCALL str:PTR BYTE
szCopy PROTO STDCALL str:PTR BYTE, str1:PTR BYTE
WriteFileToDisc PROTO STDCALL str:PTR BYTE, str2:PTR BYTE, size:SDWORD
GetFileExtension PROTO STDCALL str:PTR BYTE
szCmp PROTO STDCALL str:PTR BYTE, str2:PTR BYTE
wsp PROTO CDECL str:PTR BYTE, str1:PTR BYTE, :VARARG
StdOut PROTO STDCALL str:PTR BYTE
« Last Edit: April 22, 2012, 08:14:27 PM by Vortex »
Code it... That's all...