Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:54 25 Nov 2024 Privacy Policy
Jump to

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: Australia
Posts: 14
Posted: 12:26am 19 Mar 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 935
Posted: 01:09am 19 Mar 2012
Copy link to clipboard 
Print this post

  ernie said   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?


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: Australia
Posts: 3194
Posted: 07:24am 19 Mar 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 14
Posted: 11:27am 19 Mar 2012
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 3800
Posted: 12:05pm 19 Mar 2012
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024