Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:43 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 : MM Edit update

Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6097
Posted: 02:34am 18 Dec 2011
Copy link to clipboard 
Print this post

MM Edit is now in colour.
You can now have
Colour syntax highlighting
Uppercase keywords
White space markers (help solve text alignment issues)
Bookmarks and pop-up help.



The Help files can be edited to cater for new commands or errors.
Duinomite users have their own help files although they are initially exactly the same as the Maximite files.
(I don't have any Duinomites to play with)

I have also made improvements to the code routines to make the adding and removing linenumbers much more reliable.
You can now edit your code with or without line numbers and swap between the two as often as you like.

Timing issues that I had using XMODEM have been resolved so the File Manager is much better to use.

The program still throws a fit if you unplug your Maximite while the communications windows are open.

I have tried without sucess to communicate with a Maximite when using Wine under Ubuntu.
I am not sure if it's MMedit or my lack of understanding of Ubuntu.
I can find the device and create a symbolic link for Wine to use but I have not been able to get it working.

The rest of MMedit does appear to run OK under Wine so if anyone can get it talking, I will be very interested.

Jim

VK7JH
MMedit   MMBasic Help
 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5078
Posted: 03:03am 18 Dec 2011
Copy link to clipboard 
Print this post

Wow, good work Jim. I'll give it a go later.

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
Ray B
Senior Member

Joined: 16/02/2007
Location: Australia
Posts: 219
Posted: 10:45am 18 Dec 2011
Copy link to clipboard 
Print this post

The popup help especially is impressive.

Can you copy / paste from the pop-up help window? What I'm thinking is there could be sample examples of the use of the instruction from where a copy/paste could be performed down into the code being written.

Nice work Jim. Shows the might of Liberty Basic.
RayB from Perth WA
 
Ray B
Senior Member

Joined: 16/02/2007
Location: Australia
Posts: 219
Posted: 10:58am 18 Dec 2011
Copy link to clipboard 
Print this post

Jim further to my post above when I run the program, load a pre-existing bit of code, place the mouse over an instruction e.g. GOSUM , Click the Command Help button a window pops up "Sorry no help for" obviously I don't have a help file linked.

Can you give a bit of an explanation

Thanks
RayB from Perth WA
 
Keith @

Senior Member

Joined: 19/06/2011
Location: Australia
Posts: 167
Posted: 11:30am 18 Dec 2011
Copy link to clipboard 
Print this post

Ray

not sure if this applies but looks promising... from Don's web site

DuinoMite "help" Command:

Unzip and save the help zip files onto your SD card in B:\help and type "help" without the quotes.

Don had a picture of the main window from MMIDE .... have a look on this web page

http://www.dontronics-shop.com/olimex-duinomite.html

KeithEdited by Keith @ 2011-12-19
The more we know, the more we know we don't know !
 
Keith @

Senior Member

Joined: 19/06/2011
Location: Australia
Posts: 167
Posted: 11:34am 18 Dec 2011
Copy link to clipboard 
Print this post

Yep

I looked further and the help files are at

http://www.themaximitecomputer.com/max/Programs/index.php?di r=Hardware%2FDontronics%2FOlimex%2FCommand+Help%2F

in the zip file

Keith
The more we know, the more we know we don't know !
 
Ray B
Senior Member

Joined: 16/02/2007
Location: Australia
Posts: 219
Posted: 11:51am 18 Dec 2011
Copy link to clipboard 
Print this post

Keith I don't know if you have Jim's MM Edit program running but from what your suggesting it seems to relate to the program MMIDE which I believe is a different program by CircuitGizmos albeit a good source of a command help file.

Jim's screen image above shows the help info in MM Edit itself.

Keith thanks for the hint.
RayB from Perth WA
 
rhamer
Senior Member

Joined: 06/06/2011
Location: Australia
Posts: 174
Posted: 08:01pm 18 Dec 2011
Copy link to clipboard 
Print this post

Hi Jim,

Can you tell me about the syntax highlighting module.

I have a project where I need to use one, but all the ones I have found are quite expensive.

Cheers

Rohan
Rohan Hamer
HAMFIELD Software & Hardware Solutions

Makers of the Maximite Expander.

http://www.hamfield.com.au
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6097
Posted: 08:42pm 18 Dec 2011
Copy link to clipboard 
Print this post

Ray,
To get the help you need to highlight the keyword rather than hover the mouse.
I did try hovering but the code was too unwieldy.
GOSUM sounds like a DM command and I have not done any DM specific code yet.
Or did you mean GOSUB?
The F1 key usually works but when you have one of the communications winds open it interferes with things so it is sometimes disabled.

Rohan,
All the fancy code formatting is done thanks to http://scintilla.org/
It uses windows messaging to do all the work.
FUNCTION SendMessage(hWnd, msg, wParam, lParam)
calldll #user32, "SendMessageA",_
hWnd as ulong,_
msg as long, _
wParam as long,_
lParam as long, _
SendMessage as long
END FUNCTION


I program in Liberty Basic and the link between the two was started by others making my work relatively easy.

MMide is different. It is a better choice if you want an alternative to TeraTerm. MMedit uses a split screen when connected to your MM/DM and that is not as good for interactive work.

Jim

The wife thinks I need to get out more.....
Edited by TassyJim 2011-12-20
VK7JH
MMedit   MMBasic Help
 
Ray B
Senior Member

Joined: 16/02/2007
Location: Australia
Posts: 219
Posted: 12:34am 19 Dec 2011
Copy link to clipboard 
Print this post

Jim thanks to the reference to http://scintilla.org/ interesting site, something more to digest....

Yes my GOSUM was a typo - should have been GOSUB.

Re the contents of the Syntax Help pop up box where is the definition of the string being looked up being defined to the contents of the pop up box stored. Specifically can a user directly access / edit / add to this lookup table.
RayB from Perth WA
 
rhamer
Senior Member

Joined: 06/06/2011
Location: Australia
Posts: 174
Posted: 01:39am 19 Dec 2011
Copy link to clipboard 
Print this post

Thanks Jim, I'll take a look.

Cheers

Rohan
Rohan Hamer
HAMFIELD Software & Hardware Solutions

Makers of the Maximite Expander.

http://www.hamfield.com.au
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6097
Posted: 02:55am 19 Dec 2011
Copy link to clipboard 
Print this post

  Ray B said  
Re the contents of the Syntax Help pop up box where is the definition of the string being looked up being defined to the contents of the pop up box stored. Specifically can a user directly access / edit / add to this lookup table.


From the help file:
/quote
MM Edit Version 1.5 Page 6 of 11

The Syntax help file can be edited and new commands can be added.
The files are located in the data directory which can be located by selecting 'About'
from the Help menu.

MMcmndlist.dat is the Maximite Command list.
DMcmndlist.dat is the Duinomite Command list.
The commands do not have to be in alphabetical order.
Some commands are added as part names as well as in full to allow highlighting as
you type. Eg 'LEFT LEFT$ LEFT$('

MMsyntaxhelp.dat is the Maximite Help file.
DMsyntaxhelp.dat is the Duinomite Help file.
Each entry consists of 5 or more lines

###
ABS(
ABS( number )
Returns the absolute value of 'number'.
ABS(-6) will return 6.

The first line must be '###'
The second line is the keyword.
When searching the list of keywords, MMedit will also accept part words.
'ABS' and 'ABS(' both bring up the 'ABS(' help. This makes highlighting
words/commands easier.
The 3rd line is currently blank. Future versions will use this line as an index to a more detailed Help file.
The following lines are for the help text.
Correct syntax is usually the first line and the remaining lines are for examples.
This format doesn't suit some commands so (almost) anything goes.
At the time of writing, both versions are the same but users can edit the files to allow for differences.
/end quote

I suggest you make a copy first or use the DM list to play with.
To test your changes, simply change from Maximite to Duinomite Syntax and back in the View menu to cause the program to read the new/altered file.

Jim

Edited by TassyJim 2011-12-20
VK7JH
MMedit   MMBasic Help
 
marcwolf

Senior Member

Joined: 08/06/2009
Location: Australia
Posts: 119
Posted: 03:27am 19 Dec 2011
Copy link to clipboard 
Print this post

I'm using Windows 7 32bit

When I run MM Edit I am getting a Smalltalk\V error and this is in the ERROR.LOG


Error log timestamp 11/16/2011 12:45:8

The registers were:
EIP = 0x005b020d
ESP = 0x0012fea8
EBP = 0x00000000
EAX = 0x01994444
EBX = 0xffffe001
ECX = 0x00000100
EDX = 0x773e70b4
EDI = 0x00000001
ESI = 0x01994444
CS = 0x0000001b
DS = 0x00000023
ES = 0x00000023
SS = 0x00000023
End Registers



Error log timestamp 11/16/2011 12:45:08
Message 1001:
a non-continuable protection violation has occurred. Check ERROR.LOG file.


Coding Coding Coding..
Keep those keyboards coding..
RAW CODE!!!!!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6097
Posted: 05:07am 19 Dec 2011
Copy link to clipboard 
Print this post

  marcwolf said   I'm using Windows 7 32bit

When I run MM Edit I am getting a Smalltalk\V error and this is in the ERROR.LOG

Error log timestamp 11/16/2011 12:45:08
Message 1001:
a non-continuable protection violation has occurred. Check ERROR.LOG file.


A non-continuable protection violation is Windows' way of protecting us from rouge software and to make life difficult for program developers.
Visa made the setting too tight but they relaxed things a bit for Windows7.
My W7 has the default setting and all is well but some PC suppliers had things set tight.
You can either change your settings or install MMedit into a folder that is NOT in 'Program Files'
Please check you DEP settings and if is not set to essential Windows programs only, that is the problem. If you want to leave it set for all programs you can add MMedit as an exception or go the other folder method.

The easiest way to find DEP is to search Windows Help for DEP.

DEP stands for Data Execution Prevention.

Jim
VK7JH
MMedit   MMBasic Help
 
marcwolf

Senior Member

Joined: 08/06/2009
Location: Australia
Posts: 119
Posted: 05:13am 19 Dec 2011
Copy link to clipboard 
Print this post

Many thanks for that Jim.
I disabled DEP on MMEdit and it runs now
Take Care
Dave
Coding Coding Coding..
Keep those keyboards coding..
RAW CODE!!!!!
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 02:34pm 20 Dec 2011
Copy link to clipboard 
Print this post

Hi Jim,

Just got your new colour MMEdit going last night and I'm pretty impressed. It certainly makes pushing things back and forward and editing things a lot easier.

Here are a couple of points you might like to look at - or not!

- the white space markers on my 15.25" (1280X800) screen can hardly be seen; can you make them a bit bigger?
- the indent toggle doesn't seem to do anything; am I missing something here?

- I read the whole PDF User Guide beforehand (and previously Geoff Graham's driver install guide) but somehow missed the bit about how to set the COM port number in MMEdit. I installed the SC driver without trouble (XP SP2) but then was lost as to where to insert the number in MMEdit. Finally figured it and then felt a bit dumb!
I think the couple of lines at the bottom of page 2 could do with expanding a bit - as it is, the COM port number entry is almost an aside. I'd add to the line starting "Run the installer....." with two or three lines describing how to get the port number and insert it into MMEdit. Also, the last two lines of page 2 that say "The first time you run MMEDIt you have to configure....", caught me for a while too because I thought I'd missed a special screen that only ever came up once I then found "Configure" in the "File" drop box and realised I didn't have to re-install everything again to get that "First time.." screen - duh..

Congrats on a very helpful addition to the MM/DM family.

Greg

 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6097
Posted: 10:20pm 20 Dec 2011
Copy link to clipboard 
Print this post

  paceman said   Hi Jim,

Here are a couple of points you might like to look at - or not!

- the white space markers on my 15.25" (1280X800) screen can hardly be seen; can you make them a bit bigger?
- the indent toggle doesn't seem to do anything; am I missing something here?

Greg



I tried to make the White Space markers bigger but failed. I know the command but can't work out why it doesn't do anything. The code I am using is complex and the documentation is not very clear. I am still working on it.

To see the indent toggle at work: make sure you are in the 'no line number mode' and hit TAB a couple of times at the beginning of a line. There should be a vertical line at the TAB indent. Useful for keeping track of nested routines.

I hope to add an 'autoindent' command which does all the indenting for you. I use that a lot in Liberty Basic and find it great for finding missing ENDIF's etc.

Re the configuring the COM port. Ideally, I will bring up the configure window if you try and connect to the MM with the wrong port. I am still working on a way of auto-detecting the MM or at least reducing the list of ports to choose from.

Jim
VK7JH
MMedit   MMBasic Help
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 03:03am 21 Dec 2011
Copy link to clipboard 
Print this post



I tried to make the White Space markers bigger but failed. I know the command but can't work out why it doesn't do anything. The code I am using is complex and the documentation is not very clear. I am still working on it.

OK, I'll look forward to that.

To see the indent toggle at work: make sure you are in the 'no line number mode' and hit TAB a couple of times at the beginning of a line. There should be a vertical line at the TAB indent. Useful for keeping track of nested routines.

You're dead right! Would you believe I was just placing the cursor and then clicking the toggle box thinking it would both tab and mark automatically. No problem once you know how.

I hope to add an 'autoindent' command which does all the indenting for you. I use that a lot in Liberty Basic and find it great for finding missing ENDIF's etc.

Yes, I do the same with Small Basic, it's very handy.

Re the configuring the COM port. Ideally, I will bring up the configure window if you try and connect to the MM with the wrong port. I am still working on a way of auto-detecting the MM or at least reducing the list of ports to choose from.

Sounds a good approach - but it would still be worthwhile users knowing what they're actually doing, i.e. connecting to. It doesn't need much of an addition to the PDF file, just a short description of how to get the port number and then where to put it in MMedit. Then a slight re-word of the last sentence on page 2 so users know it can be added at any time before trying to talk to the MM/DM.
I think my problem with the last bit wasn't helped by the screen shot being on the next page, but modifying the current wording would fix the problem.

Greg (fellow (Melb expat) Tasmanian going home for Xmas and fishing at Coles Bay!)
Jim
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6097
Posted: 09:52am 21 Dec 2011
Copy link to clipboard 
Print this post

Greg,

I have resolved the White Space marker problem.
The dll I was using was out of date. I just need to test the new dll to make sure there are no new problems.
I have also added a colour background for the white space to make it really stand out.

Jim
VK7JH
MMedit   MMBasic Help
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 12:04pm 21 Dec 2011
Copy link to clipboard 
Print this post

Jim,
Nice one - that was quick! Don't get into trouble with the significant other coming up to Xmas though; we can all wait a few days!

Greg
 
Print this page


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

© JAQ Software 2024