1
Assembly discussions / Re: Poasm and FreeBASIC cooperation
« Last post by Vortex on April 17, 2024, 09:58:26 PM »FreeBASIC sample calling Poasm module.
Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
calc PROTO :QWORD,:QWORD,:QWORD,:QWORD,:QWORD,:QWORD
GetResult PROTO :QWORD,:QWORD
ALIAS <calc>=<?calc@formula@@QEAAHHHHHH@Z>
ALIAS <GetResult>=<?GetResult@formula@@QEAAXH@Z>
\PellesC\bin\podump.exe /symbols Test.obj
Dump of test.obj
File type: OBJ
SYMBOL TABLE
0000 00000000 UNDEF notype external | _?calc@formula@@QEAAHHHHHH@Z
0001 00000000 UNDEF notype weak external | calc
alternate index 0000, search alias
0003 00000000 UNDEF notype external | _?GetResult@formula@@QEAAXH@Z
0004 00000000 UNDEF notype weak external | GetResult
alternate index 0003, search alias
I recall many years ago I tried to dump my VB5 code straight into BCX
John Z
BCX is incapable of performing most forms of magic and miracles.
But it does a lot of other stuff really well.
Implement a AI library, and it will more than possible. At this time, you can simply paste VBx code into GPT for example, and convert it to pure C in a matter of seconds depending on the lines generated. Your application should utilize this to support advanced conversion supporting the entire pre-CLR days.
My application carries a conversion mixture of Python, C++ & BASIC (all converted to C). GPT 3.5 made this easily available. No need for the newer data set (GPT-4).
Search for a library in your language of choice, work the prompt parameters and parsing procedures, and you will be well on your way.
What I don't know is if you need to detect the code format, and trigger pre-defined prompts while including the code in question, because you need to establish the request on the basis of "Convert this <language> code to BASIC \n\n <code insert, from file, etc).
As you can see in the last statement, you can allow your application to easily convert most languages <--> back and forth. But since this to tailored to generate BASIC code, that is where the focus would be met when interacting with the library.
Just a thought.
case WM_CTLCOLORLISTBOX:
case WM_CTLCOLOREDIT:
//BookMark [{treeview color}]
if ((HWND)lParam == GetDlgItem(gHWND, TreeView1))
{ if ((StartUp.ThemeAll == TRUE))// && (StartUp.ThemeNum >0))
{// could color here too
TreeView_SetBkColor(GetDlgItem(gHWND, TreeView1),gColor);
TreeView_SetTextColor(GetDlgItem(gHWND, TreeView1),lColor);
return TRUE;
}
else
{// back to 'normal'
TreeView_SetBkColor(GetDlgItem(gHWND, TreeView1),RGB(255,255,255));
TreeView_SetTextColor(GetDlgItem(gHWND, TreeView1),0);
return TRUE;
}
}
I recall many years ago I tried to dump my VB5 code straight into BCX
John Z
BCX is incapable of performing most forms of magic and miracles.
But it does a lot of other stuff really well.