Can I call assembly code from B+?

BlitzPlus Forums/BlitzPlus Programming/Can I call assembly code from B+?

3DBuzzFan(Posted 2003) [#1]
Is it possible?
Thanks,

/R


Beaker(Posted 2003) [#2]
Only externally through a userlib DLL.


Hotcakes(Posted 2003) [#3]
OK, I'm gunna be the annoying bugger that says 'not until BlitzMax' this time =] And even then, I wouldn't keep your hopes up.


Bug Face(Posted 2003) [#4]
MasterBeaker is right... But you have the overhead of the DLL call.

However, I get around this by essentially having anything I want the ASM to update/modify in a bank, passing the single bank once, and having the ASM update everything it needs to in a single function, get's around the overhead.

Bug


Synchronist(Posted 2003) [#5]
"However, I get around this by essentially having anything I want the ASM to update/modify in a bank, passing the single bank once, and having the ASM update everything it needs to in a single function, get's around the overhead."

@Bug Face - Could you elaborate a little more on this please? Perhaps a code example. I'm using FASM to build .dll's for another project and would like to extend B+ in the same fashion. I'm just a bit fuzzy on the technique your describing. Thanks!


Michael Reitzenstein(Posted 2003) [#6]
And even then, I wouldn't keep your hopes up.

I would!


Hotcakes(Posted 2003) [#7]
I would!


Well then either I'm going to be very happy, or you're going to be very dissappointed ;]