flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > MYSQL API

Author
Thread Post new topic Reply to topic
srweber369



Joined: 31 Dec 2006
Posts: 2
srweber369 31 Dec 2006, 22:48
Has anyone here tried to access MYSQL C API using fasm?

_________________
Fasm is fun
Post 31 Dec 2006, 22:48
View user's profile Send private message Reply with quote
IceStudent



Joined: 19 Dec 2003
Posts: 60
Location: Ukraine
IceStudent 02 Jan 2007, 08:53
Yes, I was tryed, it isn't difficult.
Post 02 Jan 2007, 08:53
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 02 Jan 2007, 09:35
IceStudent: could you prepare some example which could then become official example in HLL section?
Post 02 Jan 2007, 09:35
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
srweber369



Joined: 31 Dec 2006
Posts: 2
srweber369 02 Jan 2007, 22:29
IceStudent wrote:
Yes, I was tryed, it isn't difficult.


I am looking at the C header files for MYSQL that part looks straight forward. I'm somewhat new to assembly are rhe pointers returned in eax?

_________________
Fasm is fun
Post 02 Jan 2007, 22:29
View user's profile Send private message Reply with quote
tantrikwizard



Joined: 13 Dec 2006
Posts: 142
tantrikwizard 02 Jan 2007, 23:38
srweber369 wrote:
I am looking at the C header files for MYSQL that part looks straight forward. I'm somewhat new to assembly are rhe pointers returned in eax?


nearly all return values for most all compilers are in the (AL/AX/EAX) register (except in the case of return value parameters)
e.g:

Code:
int dostuff()
{
    return 0x12345678;
}
    

translates into something like:
Code:
dostuff:
    mov eax, 0x12345678
    ret
    

etc.
Post 02 Jan 2007, 23:38
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
IceStudent



Joined: 19 Dec 2003
Posts: 60
Location: Ukraine
IceStudent 14 Jan 2007, 22:28
vid
Yes, i wrote this example. See in the attach.


Description: mySQL fasm example which creates a test table, inserts some data on it, fetches from and deletes this table.
Download
Filename: mysql.zip
Filesize: 9.37 KB
Downloaded: 1086 Time(s)

Post 14 Jan 2007, 22:28
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 15 Jan 2007, 06:00
thanks. i moved this thread to HLL section, and linked it from "about this thread"
Post 15 Jan 2007, 06:00
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Mar 2007, 10:58
IceStudent: could you post complete sources? Things like "enum" and "mec" are nowhere defined.
Post 14 Mar 2007, 10:58
View user's profile Send private message Visit poster's website AIM Address 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.