Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:50 11 May 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 for Windows - alphas

     Page 10 of 12    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 11:05am 24 Feb 2022
Copy link to clipboard 
Print this post

V5.07.03a11


MMBasic.zip

Fixes a bug where mm.info(exists file fname$) returned true for a directory
Fixed MM.INFO(DIRECTORY) to always end in a \
Removes a spurious diagnostic in directory handling
Improves error message for CHDIR
PLAY WAV, FLAC, and MP3 now all accept a directory as per CMM2
implements MM.INFO(OPTION ANGLE) and MM.INFO(OPTION Y_AXIS)
Implements MM.INFO(ENNVAR TMP) and MM.INFO(ENNVAR DOCUMENTS)
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 11:06am 24 Feb 2022
Copy link to clipboard 
Print this post

V5.07.03a11


MMBasic.zip

Fixes a bug where mm.info(exists file fname$) returned true for a directory
Fixed MM.INFO(DIRECTORY) to always end in a \
Removes a spurious diagnostic in directory handling
Improves error message for CHDIR
PLAY WAV, FLAC, and MP3 now all accept a directory as per CMM2
implements MM.INFO(OPTION ANGLE) and MM.INFO(OPTION Y_AXIS)
Implements MM.INFO(ENVVAR TMP) and MM.INFO(ENVVAR DOCUMENTS)
Edited 2022-02-24 21:07 by matherp
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4251
Posted: 11:13am 24 Feb 2022
Copy link to clipboard 
Print this post

I can't speak for Windows 11, but I don't think DOCUMENTS is a standard environment variable: https://pureinfotech.com/list-environment-variables-windows-10/

I imagine it would save yourself a lot of hastle, endless additional environment variable requests and additional code if you just implement the flexibility of what MMB4L does  .

Best wishes,

Tom
Edited 2022-02-24 21:14 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 12:09pm 24 Feb 2022
Copy link to clipboard 
Print this post

God you are demanding


MMBasic.zip
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4251
Posted: 12:56pm 24 Feb 2022
Copy link to clipboard 
Print this post

  matherp said  God you are demanding

MMBasic.zip


Thank you Peter, I'll take it for a spin in the morning.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3310
Posted: 02:01am 25 Feb 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  . . .

Mick--I've lost the link to your MMB4W document. Would it be asking too much for you to put it in your signature? Development is so hot and heavy now that it's hard to keep up.

Thanks for considering.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 02:42am 25 Feb 2022
Copy link to clipboard 
Print this post

Hi Pete
I have some small problems and 1 wish

1-pb:
after v5_07a1 i can't use MMBasic on my computer under Win10. My other PC under win8 work perfect

2-pb in mode 16
after close edit or cls command (and all others commands who use cls), cursor is out of screen (in fact with pos.topY value negative). I must send "return" key to view my cursor

3 - whish in display windows
Is it possible to have option "with" or "without" windows borders?. I explaine
i am in 1920*1080 resolution, and MMBasic in mode 16. In this case, I can't view all screen in MMBasic window I don't need top-right system buttons
 
Goksteroo
Senior Member

Joined: 15/03/2021
Location: Australia
Posts: 114
Posted: 03:02am 25 Feb 2022
Copy link to clipboard 
Print this post

gui cursor load "mazist.cur" ...works on CMM2 but gives a syntax error in MMB4W.
Mazist.cur is:
4,4,0,0
4444
4444
4444
4444
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 04:23am 25 Feb 2022
Copy link to clipboard 
Print this post

G'Day All

I may regret this but here goes anyway.
I have long missed the parallel port on a PC. I'm not into games but I do like to control the world and now we have MMBASIC on Windows, LINUX, ???? but still without direct control of multiple pins.
Is there a place in this world for a device to convert USB into multiple I/O pins?
If there is a need I think the difficult bit would be defining what it should do.
If such a device already exists don't be too hard on me........I'm an old man

Peter
 
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 572
Posted: 05:21am 25 Feb 2022
Copy link to clipboard 
Print this post

Hey PeterB,

Maybe this

Even a picomite on usb to read the serial bytes from mm4bw console is possible, i think

Gtx
Edited 2022-02-25 15:23 by Plasmamac
Plasma
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2417
Posted: 05:25am 25 Feb 2022
Copy link to clipboard 
Print this post

When // ports started to vanish there were "USB to Parallel" cables available so older printers and scanners could still be used. If you can find one of them it might work, depending on the features of the driver. Sometimes they were an accessory with laptops.

Edit A quick search shows many. $15 to $40. Software for a Pico would be better still.
Edited 2022-02-25 15:32 by phil99
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 06:36am 25 Feb 2022
Copy link to clipboard 
Print this post

Plasma

Thanks for that. All I have to do now is get my head around it but it looks good. I had got as far as an MX170 with an FTDI device but then what?

Phil

My CNC machine uses the printer port and when my XP PC failed and the replacement didn't have such a thing I tried one of those cables with no luck so I bought a printer port card and still no luck so I bought a well used board and it is now in it's second PC.

Peter
 
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 572
Posted: 07:25am 25 Feb 2022
Copy link to clipboard 
Print this post

I think Adafruit has also a usb board , but i think going with the Picomite is an universal solution . Banging lpt pins
In win is like using mach3  
Plasma
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7505
Posted: 07:42am 25 Feb 2022
Copy link to clipboard 
Print this post

@lizby
I'm not attempting to keep up with every release of MMB4W. It seems daft to re-release every half page or so. :)
I have the next version of the doc almost ready, but I'm just waiting for the next release before publishing.

Remote I/O:
Shortly I hope to have a PCB on order that connects via RS485. You can get USB/RS485 dongles for a PC quite cheaply so it should be possible to put a load of these onto a PC. Each one has a RS485 transceiver and Micromite wired out to pins, which can be pin-defined. Writing the software is up to you lot, I'm a hardware guy. :) MMB4W will need to treat a USB port as a virtual COM to use the dongle, I think. I've not tried one yet.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 07:57am 25 Feb 2022
Copy link to clipboard 
Print this post

G'day Mick.

Plasma has got me looking into all manner of things but like you I am very much hardware and my head is starting to hurt.
But they do exist and that is what matters.
Any device that can't talk to the outside world is like an ashtray on a motorbike.
And as somebody said recently, the shed is a wonderful place for solving problems.

Peter
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 08:05am 25 Feb 2022
Copy link to clipboard 
Print this post

  Quote  after v5_07a1 i can't use MMBasic on my computer under Win10. My other PC under win8 work perfect


Lots of others working on W10. Did the problem start with a3? in which case it is probably missing sound dll winmm.dll


  Quote  Is it possible to have option "with" or "without" windows borders?. I explain

Use "mode -16" or use a mode that is smaller than your monitor

  Quote  gui cursor load "mazist.cur" ...works on CMM2 but gives a syntax error in MMB4W.


Correct MMB4W uses the windows cursor
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7505
Posted: 08:38am 25 Feb 2022
Copy link to clipboard 
Print this post

  Plasmamac said  Hey PeterB,

Maybe this

Even a picomite on usb to read the serial bytes from mm4bw console is possible, i think

Gtx

Trouble is, that'll probably be $6.80 + $25 carriage +20% VAT before it gets here. :(
A PICO would be a lot cheaper.
There doesn't appear to be a way to drive it either, apart from working on C or, possibly, python.

I've seen a description of the PICO being used as an IO expander, but once again it only seems to be driven from python via a library. That's of no use whatsoever to me. Serial port commands over the USB link would be ideal.

I think lizby has this sorted out now anyway. See this post
Edited 2022-02-25 19:11 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1111
Posted: 09:22am 25 Feb 2022
Copy link to clipboard 
Print this post

  PeterB said  G'Day All

I may regret this but here goes anyway.
I have long missed the parallel port on a PC. I'm not into games but I do like to control the world and now we have MMBASIC on Windows, LINUX, ???? but still without direct control of multiple pins.
Is there a place in this world for a device to convert USB into multiple I/O pins?
If there is a need I think the difficult bit would be defining what it should do.
If such a device already exists don't be too hard on me........I'm an old man

Peter

Peter,
With respect, this thread is about the development of MMB4W by matherp and the testing of releases.
Your question is interesting but should really be in a thread of it's own.
Regards,
Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7505
Posted: 09:40am 25 Feb 2022
Copy link to clipboard 
Print this post

To be fair, Doug, IMHO it's important that the issue of I/O in MMB4W is looked at, at least to some extent. We have to assume that the only I/O capability available on a PC is via it's USB ports and those should be easily supported from MMB4W. As I pointed out at the beginning of this project, MMBasic is very I/O orientated and it's something that shouldn't be ignored.

Hopefully the link I've just posted to lizby's solution might put this one to bed now as USB-serial converters are no problem.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 10:02am 25 Feb 2022
Copy link to clipboard 
Print this post

G'Day again

I agree with both Doug and Mick. There is no ideal way to bring this point up.
In fact I was not even sure it was a valid point.
However, there are solutions and that is the main thing.

Thanks for your interest.

Peter
 
     Page 10 of 12    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025