Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:51 02 Aug 2025 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 windows simulator

Author Message
Chrisk

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 122
Posted: 06:25am 14 Aug 2022
Copy link to clipboard 
Print this post

Hi all
Seems I posted this in the wrong forum. Sorry about that and thanks to Tassyjim.

When using TRON within MMBasic the simulator on my windows machine, why don't the execution line numbers coincide with the lines of the program displayed by MM Edit.
Is it a version problem with MMBasic?

Here it is again with a image of the two windows.
Not sure how clear it will be.
MMBasic for windows shows a line 34 to execute the print. The file in MM Edit has an end statement at line 32 ??  

Chrisk


 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:32am 14 Aug 2022
Copy link to clipboard 
Print this post

The version of MMEdit you are using adds 4 lines of comment to the bas files.

Under Preferences, remove "save config in bas" and the number will line up.

Not a problem with MMEdit V5 or if you are sending files to an attached 'mite in which case, the config data is not sent.

Jim
VK7JH
MMedit
 
Chrisk

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 122
Posted: 12:47am 15 Aug 2022
Copy link to clipboard 
Print this post

Hi Jim

Maybe I have been doing it wrong for years.

I save the bas file and then open MMBasic via a windows shortcut.
This gives me the DOS screen where I load the file and type run.

I have never been able to run the program using the "Run in DOS" icon from within MMEdit.
Is it because I don't have the CMM or any mite connected to my computer.

Chrisk  
 
Chrisk

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 122
Posted: 12:52am 15 Aug 2022
Copy link to clipboard 
Print this post

Forgot to mention, I tried your suggestion but nothing was different. I presume as I am not going through MM Edit "Run program in DOS"

Chrisk
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 02:23am 15 Aug 2022
Copy link to clipboard 
Print this post

Not doing anything wrong. There are many way to skin a cat.

When you save a file similar to this is inserted at the beginning:
'MMEDIT!!! Basic Version = Micromite_MK2_V5.2
'MMEDIT!!! Port = COM5:38400:10,300
'MMEDIT!!! Device = Micromite_MK2_V5.2
'MMEDIT!!! Config = 100111101121010110020000110001

If you  remove "save config in bas" from preferences, next time you save the file, the extra lines should not be added.

Not being able to use "run in dos" usually means that you don't have it pointing to the exe.
Try holding 'shift' when clicking and you should get the option to find the exe file.

Jim
Edited 2022-08-15 12:25 by TassyJim
VK7JH
MMedit
 
Chrisk

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 122
Posted: 07:24am 15 Aug 2022
Copy link to clipboard 
Print this post

Thankyou muchly    Jim

Tried that and it works.
Is this documented anywhere? I have been doing it the hard way for years.
This is so much simpler.

Regards
Chris K
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025