Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Calling assembly language from MMBASIC
Author | Message | ||||
ernie Newbie Joined: 18/03/2012 Location: AustraliaPosts: 14 |
I am new to MMBASIC, I noticed that MMBASIC seems to be missing the CALL statement, or the USR function that were standard in GW-BASIC. see http://www.antonis.de/qbebooks/gwbasman/call.html Is there any way of calling assembly language routines in MMBASIC for tasks that need high execution speed? |
||||
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935 |
You are right. No CALL or USR and no ability to invoke assembler routines. I believe that you can ask for the source of MMBasic and include your own code. |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3194 |
This feature was included in the early computers like the Tandy so that users could write fast subroutines or access hidden features of the computer. In the case of the Maximite the main issue would be learning to program in MIPS assembler - the early computers used simple 8 bit CPUs while the Maximite has a 32 bit CPU designed for optimising compilers and that is much, much harder to deal with. I doubt that anyone would be bothered and this is why I have not included such a feature. Adding your own routines to the source is much easier. Geoff Geoff Graham - http://geoffg.net |
||||
ernie Newbie Joined: 18/03/2012 Location: AustraliaPosts: 14 |
Oh, that means I have to use MMBASIC, C, and assembler to do what I want, and the MMBASIC 3.1 seems to have gone closed source. Oh well, I guess it's back to my STM32 dev kit :-( |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3800 |
Well, you likely just use MMBasic and C. You _could_ use assembler but why??? But yes it's gone closed source so you either go back to the open one or live with the closed one or as you say head to somewhere else that maybe has no Basic at all (don't know whether you really wanted Basic). John |
||||
Print this page |