|
Atari coding BBS
Calling C from assembler (gcc) |
Posted by: Peter
|
Apr,12.2006-13:31
|
Howdy,
I realise that this is probably trivial stuff, but how in the name of Arbarkuthnahaa'hl do I call a C function from assembler when using GCC?
-------- snip ----------
speisekarte()
{
/* fressen */
}
-------- snip ----------
.globl _tjosan
_tjosan:
/* some funny business */
JSR speisekarte
rts
------------------------
The linker doesn't like this, so I guess I have to add some line to the assembler part stating where to find the C-routine in question..
How?
-- Peter
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Calling C from assembler (gcc)
|
Peter
|
Apr,12.2006-13:31
|
Re: Calling C from assembler (
|
sqward
|
Apr,12.2006-18:25
|
Re: Calling C from assembler (
|
Peter
|
Apr,12.2006-19:06
|
Re: Calling C from assembler (gcc)
|
Coda
|
Apr,12.2006-22:08
|
Re: Calling C from assembler (
|
ray
|
Apr,13.2006-01:03
|
Re: Calling C from assembler (
|
505
|
Apr,14.2006-23:19
|
Re: Calling C from assembler (
|
ray
|
Apr,15.2006-02:11
|
Re: Calling C from assembler (
|
Peter
|
Apr,18.2006-10:52
|
Re: Calling C from assembler (
|
Coda
|
Apr,18.2006-16:51
|
Re: Calling C from assembler (
|
Peter
|
Apr,19.2006-20:56
|
Re: Calling C from assembler (
|
ggn/KUA
|
Apr,19.2006-23:14
|
Re: Calling C from assembler (
|
Peter
|
Apr,20.2006-10:01
|
Re: Calling C from assembler (
|
Coda
|
Apr,20.2006-12:10
|
Re: Calling C from assembler (
|
Peter
|
Apr,20.2006-12:53
|
Re: Calling C from assembler (
|
Simon Sunnyboy / Paradize
|
Apr,20.2006-17:12
|
Re: Calling C from assembler (
|
Peter
|
Apr,20.2006-19:08
|
Re: Calling C from assembler (
|
sqward
|
Apr,21.2006-12:46
|
Re: Calling C from assembler (
|
Simon Sunnyboy / Paradize
|
Apr,21.2006-21:23
|
Re: Calling C from assembler (
|
ggn/KUA
|
Apr,22.2006-00:50
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|