Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Access and ASM...?

3 views
Skip to first unread message

Kas Robson

unread,
Jan 28, 1996, 3:00:00 AM1/28/96
to
Is there any way of getting Access BASIC to call Assembler Routines?
Preferably internally - I mean I guess you could do it by writing the assembly
as a seperate program and calling it (?). But there must be a slicker way,
like something along the lines of an asm{...} command in C. Maybe this could
be hacked in (would that be in breach of the MS license? Would anyone care?).

I'm not entirely sure what I want to use this for, but it'd be kinda nice to
know nonetheless...
--
================================================================================
Kas Robson,
Artificial Intelligence & Computer Science 2,
Edinburgh University.

Weiqi Gao

unread,
Jan 30, 1996, 3:00:00 AM1/30/96
to
k...@dcs.ed.ac.uk (Kas Robson) wrote:

>Is there any way of getting Access BASIC to call Assembler Routines?
>Preferably internally - I mean I guess you could do it by writing the assembly
>as a seperate program and calling it (?). But there must be a slicker way,
>like something along the lines of an asm{...} command in C. Maybe this could
>be hacked in (would that be in breach of the MS license? Would anyone care?).

>I'm not entirely sure what I want to use this for, but it'd be kinda nice to
>know nonetheless...

Access Basic is not compiled to machine code. So putting assembly
instructions in-line inside an Access Basic routine kind of defeats
the purpose of using assembly code (you have transform the assembler
instructions back into the Access Basic engine's internal psuedo-code
format.)

That leaves us with only two options: create a dll file using assember
and call the functions from Access Basic, --OR-- embed _asm{...} in a
C function and compile it to a dll.

--
Weiqi Gao
weiq...@crl.com


Trevor Best

unread,
Jan 31, 1996, 3:00:00 AM1/31/96
to
On Sun, 28 Jan 1996 14:22:31 GMT in comp.databases.ms-access,
k...@dcs.ed.ac.uk (Kas Robson) wrote:

>Is there any way of getting Access BASIC to call Assembler Routines?
>Preferably internally - I mean I guess you could do it by writing the assembly
>as a seperate program and calling it (?). But there must be a slicker way,
>like something along the lines of an asm{...} command in C. Maybe this could
>be hacked in (would that be in breach of the MS license? Would anyone care?).

>I'm not entirely sure what I want to use this for, but it'd be kinda nice to
>know nonetheless...

No.

the closest you'll get is write a Dll and embed the assembler routines
in there, or even write the Dll in assembler if you're ambitious.

\|||/
/ \
C o o D
-----------------ooO--u--Ooo-------------------------------
10 Gosub 10

tre...@microprism.com - Microprism (UK) Limited


0 new messages