![]() |
Forum Index : Microcontroller and PC projects : MMBasic windows simulator
Author | Message | ||||
Chrisk![]() Senior Member ![]() Joined: 21/12/2014 Location: AustraliaPosts: 122 |
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: AustraliaPosts: 6283 |
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: AustraliaPosts: 122 |
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: AustraliaPosts: 122 |
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: AustraliaPosts: 6283 |
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: AustraliaPosts: 122 |
Thankyou muchly ![]() 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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |