Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:47 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 - pre-alphas

     Page 8 of 17    
Author Message
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 390
Posted: 10:28pm 31 Jan 2022
Copy link to clipboard 
Print this post

  matherp said  pa10

You can now paste into autosave using ctrl-V
You can also paste into the editor but only a single line will be accepted


Thanks for the paste capability. When I paste into autosave, though, it tries to execute every line even if there's a line number in front. Shouldn't it store those lines?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 10:33pm 31 Jan 2022
Copy link to clipboard 
Print this post

  Quote  Shouldn't it store those lines?


It does. Tested with a 3215 line file amongst other. The only way you would see what you report is if you have binary codes in the file e.g. Ctrl-Z

If you are running under wine then that may be the problem as it seems to b....r everything else
Edited 2022-02-01 08:34 by matherp
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1111
Posted: 10:49pm 31 Jan 2022
Copy link to clipboard 
Print this post

  andreas said  
  Quote  Is wine mapping the keys?


I have to look for that - don't know but possible!
-anderas


Andreas, this link may be of assistance in re-mapping.

Doug
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
darthvader
Regular Member

Joined: 31/01/2020
Location: France
Posts: 80
Posted: 11:09pm 31 Jan 2022
Copy link to clipboard 
Print this post

I  
i just tested "mmbasic benchmark" on pa10.

Here the results :

1 : 5.18   e-07 = 0.000000518
2 : 4.11   e-06 = 0.00000411
3 : 6.599  e-06 = 0.000006599
4 : 6.149  e-06 = 0.000006149
5 : 2.2694 e-05 = 0.000022694
6 : 2.6841 e-05 = 0.000026841
7 : 3.4598 e-05 = 0.000034598
8 : 9.296  e-06 = 0.000009296

Ryzen 9 3950x 4.2ghz

Seems to be pretty fast ;)
Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1527
Posted: 11:24pm 31 Jan 2022
Copy link to clipboard 
Print this post

Amazing ...  
My results:



Intel Q9400/~3GHz
Edited 2022-02-01 09:35 by twofingers
causality ≠ correlation ≠ coincidence
 
goc30

Guru

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

  goc30 said  

I have other problem: with Pa9, I can't use graphicals function, like "line", "circle", etc


I found problem
for "line" function
line 0,0,500,500    'ok line is white and 1 pixel width
line 0,0,500,500,10  'line is ok but only 1 pixel width
line 0,0,500,500,1,&hffffff    'line in black color


but cls RGB(blue)   'is ok
and line 0,0,500,500,1,RGB(RED)    'line is ok in red color

it seem that each time i use "color" parameter in hexa code, it take only black color

with first version of mmbasic I have no this problem, my "testgraf.bas" work correctly
Edited 2022-02-01 11:00 by goc30
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 971
Posted: 01:13am 01 Feb 2022
Copy link to clipboard 
Print this post

  matherp said  New version with more improvements to keyboard/language.

US is tested with onscreen keyboard and works perfectly for me - please could someone confirm with a real keyboard
...

Note back single quote will always show as a degree-symbol as this is what is set in the fonts


Testing with latest version.

I used On Screen Keyboard in windows 10 and selected UK Keyboard. All works as expected with degree symbol shown for ` (back quote)

Using US keyboard, both On Screen and real one I am seeing the following:


~ (tilde)        gives  @                 expected is ~
@                gives  "                 expected is @
` (backquote)    gives  ' (single quote)  expected is degree symbol
' (single quote) gives  #                 expected is ' (single quote)


Can someone else with US Keyboard check whether they see the same thing.
Latest F4 Latest H7 FotS
 
Goksteroo
Senior Member

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

My US keyboard works as expected now. I assume you've done the 'OPTION Keyboard US' command?
 
panky

Guru

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

  Quote  
goc30 said ...

......
for "line" function
line 0,0,500,500    'ok line is white and 1 pixel width
line 0,0,500,500,10  'line is ok but only 1 pixel width
......


For this case line width only applies for vertical or horizontal lines. Diagonal lines default to 1 pixel wide.

  Quote  
....
but cls RGB(blue)   'is ok
and line 0,0,500,500,1,RGB(RED)    'line is ok in red color

it seem that each time i use "color" parameter in hexa code, it take only black color

with first version of mmbasic I have no this problem, my "testgraf.bas" work correctly


For this case, if you wish to specify colour in hex, it needs to be in the form RGB(&hFF,&hFF,&hFF)

Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 02:20am 01 Feb 2022
Copy link to clipboard 
Print this post

My laptop US keyboard all OK thanks.

Bill
Keep safe. Live long and prosper.
 
panky

Guru

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

Peter,

Currently the graphics output and the command line/error reports share the same output window. Do you have any plans to seperate the two outputs in some way?
Eg. If you impliment the PAGE command, could perhaps PAGE 1 be reserved for textual output (the command line/error reports) and PAGEs 2 thru n as graphics (GUI) pages?

Great job on this implimentation,
Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 02:47am 01 Feb 2022
Copy link to clipboard 
Print this post

'Normal' US format keyboards are OK
This one, the pipe/backslash key to the left has no response.



Re running bas file on commandline.
The program opens OK and runs for about 1-2 seconds before closing down.

Jim
VK7JH
MMedit
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 971
Posted: 02:48am 01 Feb 2022
Copy link to clipboard 
Print this post

  Goksteroo said  I assume you've done the 'OPTION Keyboard US' command?

No. All good now. false alarm.
Latest F4 Latest H7 FotS
 
goc30

Guru

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

  panky said  

For this case, if you wish to specify colour in hex, it needs to be in the form RGB(&hFF,&hFF,&hFF)

Doug.


Why not, but why with first versions (pa1 to pa5), you can use directly "&hxxxxxx" value and now no ???
and what is difference between direct 24bits value and 3*8bits value ??

why c%=(rnd()*&hff , rnd()*&hff, rnd()*&hff) is not same as c%=(Rnd()*&hffffff) in MMbasic for windows, and same in others MMBasic (micromite, cmm2, armmite, etc..)
???
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 03:32am 01 Feb 2022
Copy link to clipboard 
Print this post

  goc30 said  

Why not, but why with first versions (pa1 to pa5), you can use directly "&hxxxxxx" value and now no ???
and what is difference between direct 24bits value and 3*8bits value ??

why c%=(rnd()*&hff , rnd()*&hff, rnd()*&hff) is not same as c%=(Rnd()*&hffffff) in MMbasic for windows, and same in others MMBasic (micromite, cmm2, armmite, etc..)
???

Peter is working on getting transparency working. That requires a change to the colour values.

All will be resolved in time.

Jim
VK7JH
MMedit
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 390
Posted: 04:01am 01 Feb 2022
Copy link to clipboard 
Print this post

  matherp said  
  Quote  Shouldn't it store those lines?


It does. Tested with a 3215 line file amongst other. The only way you would see what you report is if you have binary codes in the file e.g. Ctrl-Z

If you are running under wine then that may be the problem as it seems to b....r everything else


The files are just Windows text files with CR/LF at the end of each line.

10 PRINT "SQUARE","GRAINS","TOTAL"
20 PRINT
25 LET S=0
30 FOR X = 0 TO 63
35 LET S=S+2^X
40 PRINT X+ 1,2^X,S
50 NEXT X
60 END


When I paste the program into MMBasic, I get this:

> 10 PRINT "SQUARE","GRAINS","TOTAL"
SQUARE  GRAINS  TOTAL
>
>20 PRINT

>
> 25 LET S=0
>
> 30 FOR X = 0 TO 63
Error : No matching NEXT
>
> 35 LET S=S+2^X
>
> 40 PRINT X+ 1,2^X,S
 1   1   1
>
> 50 NEXT X
Error : Cannot find a matching FOR

Edited 2022-02-01 14:37 by toml_12953
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1111
Posted: 04:34am 01 Feb 2022
Copy link to clipboard 
Print this post

@goc30

As Tassy Jim said above, Peter found an issue with how colour values are interpretted ...
  Quote  
... from Peter .... I've fixed a colour error in the GUI commands plus all the prep work for the Page command and transparency is now done. This was a big job because in the old code -1 = &HFFFFFFFF which was a coded value for the text command whereas in ARGB &HFFFFFFFF is non-transparent white. This meant all colour values in the entire code needed changing to 64 bit integers from 32 and there are hundreds of them. The CMM2 didn't have this issue as there are only 15 transparency levels so &HFFFFFFF  (7 F's) isn't the same as &HFFFFFFFF (8 F's)


I am sure he will expand on this as developement continues.

Regards,
Dopug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 390
Posted: 04:54am 01 Feb 2022
Copy link to clipboard 
Print this post

  toml_12953 said  
  matherp said  
  Quote  Shouldn't it store those lines?


It does. Tested with a 3215 line file amongst other. The only way you would see what you report is if you have binary codes in the file e.g. Ctrl-Z

If you are running under wine then that may be the problem as it seems to b....r everything else


The files are just Windows text files with CR/LF at the end of each line.

10 PRINT "SQUARE","GRAINS","TOTAL"
20 PRINT
25 LET S=0
30 FOR X = 0 TO 63
35 LET S=S+2^X
40 PRINT X+ 1,2^X,S
50 NEXT X
60 END


When I paste the program into MMBasic, I get this:

> 10 PRINT "SQUARE","GRAINS","TOTAL"
SQUARE  GRAINS  TOTAL
>
>20 PRINT

>
> 25 LET S=0
>
> 30 FOR X = 0 TO 63
Error : No matching NEXT
>
> 35 LET S=S+2^X
>
> 40 PRINT X+ 1,2^X,S
 1   1   1
>
> 50 NEXT X
Error : Cannot find a matching FOR


P.S. I checked the files with a HEX editor and there's no Ctrl-Z in any of them.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 05:56am 01 Feb 2022
Copy link to clipboard 
Print this post

  toml_12953 said  
When I paste the program into MMBasic, I get this:


It looks like you are not using AUTOSAVE.
Without AUTOSAVE the code will be executed immediately.

There is no provision for automatically saving code when it starts with line numbers.

Jim
VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6220
Posted: 06:36am 01 Feb 2022
Copy link to clipboard 
Print this post

  goc30 said  
Why not, but why with first versions (pa1 to pa5), you can use directly "&hxxxxxx" value and now no ???

For now, add FF to the start of your 24bit HEX.
eg
&hFF7F00FF

24bitcolour OR &hFF000000


Jim
VK7JH
MMedit
 
     Page 8 of 17    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025