Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:38 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 : MMBasic 3.2 DOS Tip

Author Message
crackerjack

Senior Member

Joined: 11/07/2011
Location: Australia
Posts: 164
Posted: 03:44am 19 Apr 2012
Copy link to clipboard 
Print this post

A quick tip for those who find the DOS version as useful as I do (it means I can write sneaky MMBasic programs during lunchtime at work with no MM hardware attached to my PC - then drop the BAS file into Dropbox and then, when I get home, I transfer the program using the enhanced XMODEM commands to my Maximite and test it out there).

Anyway - back to the tip: Add the new DOS-only QUIT command at the end of your program to release CPU used by MMBasic.

For programs that will run on both MM and DOS, use the following to prevent errors when the non-MM command (QUIT) is encountered:

[code]
If MM.HRes = 0 Then
Quit
EndIf
[/code]

MM.HRes has a zero value in DOS.

This tip was gleaned from a suggestion by the MMaster - Geoff himself.
 
Print this page


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

© JAQ Software 2024