Jump to content

Inserting Assembler Code In Boostbasic..

Recommended Posts

I noticed from the example code that the protocol for inserting assembler code into a BoostBasic routine is simply...




..inserted code...



I have some code clips that are from a programme that assembles correctly and runs for PICs using MPASM 7.3 (I've tested it). I find, however, that when I try to insert them into the BoostBasic routines whatever modules in BoostBasic that interpret inserted assembler aren't at all happy with MPASM assembler formatting.


To cut to the chase, I've found some nice code that Lars Petersen wrote that can be seen at...




It compiles under the MPASM assembler, but BoostBasic chokes on it.


Is there anything written anywhere about how to convert MPASM assembler code into something acceptable for BoostBasic?

Link to post
Share on other sites

Take a look at the BoostC help file. It has a chapter that describes how to use assembly inside C code and since BoostBasic is based on BoostC code the usage model of assembly inside basic code will be the same.




Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...