How to import Assembly file to BlitzMax
BlitzMax Forums/BlitzMax Programming/How to import Assembly file to BlitzMax
| ||
I want to call assembly function from BlitzMax . In documentation : http://en.wikibooks.org/wiki/BlitzMax/Language/Interfacing_with_C is written that we can import '.s' Assembly but I am getting error message : illegal instruction I can't find any documentation on this topic Any idea ? Thanks |
| ||
Are you using the right kind of assembly in your file to import? If you're on x86, you'll need to be using FASM, not GNU assembly; and conversely if for some reason you're on PPC. So if you wrote some GNU assembly, or just got some from "somewhere" and didn't write it yourself, it won't be the right syntax at all and would need to be rewritten. You might have more luck compiling the assembly separately and then linking to the resulting .o file instead? |
| ||
Hiya, This is some assembly importing inside the source code that you *could* use as the smallest of an example, inside brl.mod/blitz.mod/... or alternatively: assembly sse image blending |
| ||
Thanks guys, That's what I'm looking for :) Thanks again. |