Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:49 24 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 : MMBasic Test Version 2.6D

     Page 3 of 4    
Author Message
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 06:17pm 02 Oct 2011
Copy link to clipboard 
Print this post

Hi

I have also seen this a few times
seems to only hapen on multi command lines

Regards

John
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2914
Posted: 07:28pm 02 Oct 2011
Copy link to clipboard 
Print this post

  sparkey said   geoff...

i am finding that a "line is too long to edit" throwing an error and stopping the edit


I vaguely remember the TRS-80 used to have something like 255 character MAX per line but you couldnt edit a line that had more than 240 characters...

Maybe that is carried over here.

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 10:24pm 02 Oct 2011
Copy link to clipboard 
Print this post

  sparkey said  i am finding that a "line is too long to edit" throwing an error and stopping the edit ...what should i do any suggestions ...regards sparkey...

The editing function cannot handle lines greater than the screen width. So when you step up or down through the program and reach a line that is too long, the editor has no choice other than abort.

So, this is the correct behaviour and the only way to edit a long line is to replace it with a new line. Just like in versions before this

You can always type in a long line (up to 255 characters) but you cannot edit them. I found that, as a result of this, that I now make a point of keeping my program lines shorter than the screen width - the editing function is too valuable to loose, even on one line.

Geoff
Geoff Graham - http://geoffg.net
 
Gadget
Regular Member

Joined: 22/06/2011
Location: Australia
Posts: 70
Posted: 10:32pm 02 Oct 2011
Copy link to clipboard 
Print this post

  bigmik said  

I vaguely remember the TRS-80 used to have something like 255 character MAX per line but you couldnt edit a line that had more than 240 characters...

Maybe that is carried over here.

Mick


its a pity about the line length, at least you can stiil enter lines that length. speaking of trs-80 i remember there were competitions to write a game only using one line.
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 10:35pm 02 Oct 2011
Copy link to clipboard 
Print this post

well what is the maxium line lenth that can be "edit`ed" please geoff...regards sparkey......
technicians do it with least resistance
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 10:41pm 02 Oct 2011
Copy link to clipboard 
Print this post

79 charcaters in VGA mode and 49 characters in composite mode (these include the line number).

Geoff
Geoff Graham - http://geoffg.net
 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5078
Posted: 02:48am 06 Oct 2011
Copy link to clipboard 
Print this post

Big thumbs up to the new editing functions and the AUTO command, I sure was looking forward to that one

Good work Geoff

On the subject of memory and arrays, could the SD card be used as a swap area? I would image its too slow though, and the limited writes to flash media could shorten the cards life.

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

Joined: 16/09/2011
Location: United Kingdom
Posts: 153
Posted: 08:55pm 09 Oct 2011
Copy link to clipboard 
Print this post

I have noticed a possible bug in the LIST command. When using composite mode on a program that has more lines than can be displayed on the screen it sometimes scrolls to far before the "PRESS ANY KEY ..." prompt. I suspect it is not taking into account lines that wrap (more than 49 characters in the line). For example when I list GRAPH.BAS from MMBasic library 1.5, I lose lines 100-130 and most of 140.
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 08:15am 10 Oct 2011
Copy link to clipboard 
Print this post

Greg,

It happens with VGA too. The problem (on mine and VGA) is previously using a FONT in a non standard size, it seems to throw the row count out. If you do a CLS the same 'problem' is fixed on mine. I don't think it is due to lines wrapping.

Cheers,
Anthony.

Edited by ajkw 2011-10-11
 
Greg Fordyce
Senior Member

Joined: 16/09/2011
Location: United Kingdom
Posts: 153
Posted: 09:17am 10 Oct 2011
Copy link to clipboard 
Print this post

I'll give the CLS command a try tonight and see if it fixes the problem. I have been using FONT 2, so maybe that's it.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 08:29pm 10 Oct 2011
Copy link to clipboard 
Print this post

This is what I guess that you could call a "known fault". It is caused when the lines are longer than the screen width and the automatic wrapping of the line throws off the line counting used in the list command.

The quick fix is to not use lines wider than the screen width but I need to find a proper fix.

Geoff
Geoff Graham - http://geoffg.net
 
Greg Fordyce
Senior Member

Joined: 16/09/2011
Location: United Kingdom
Posts: 153
Posted: 09:22pm 10 Oct 2011
Copy link to clipboard 
Print this post

Thanks Geoff, I can confirm that it has nothing to do with the FONT command. I am using composite mode because that is what I will be using for my display when my project is working. For my code I am keeping my lines within 49 characters. I noticed this when looking at some of the sample programs for coding ideas. Another work around is to use LIST with starting and ending line numbers.
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 10:26pm 10 Oct 2011
Copy link to clipboard 
Print this post

Speaking of composite mode, will 2.7 support NTSC? One project is on hold because of this current limitation.
Micromites and Maximites! - Beginning Maximite
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 11:51pm 10 Oct 2011
Copy link to clipboard 
Print this post

  CircuitGizmos said   Speaking of composite mode, will 2.7 support NTSC? One project is on hold because of this current limitation.


I know Ken Segler had a play around with this and appears to have it working, but some people are having trouble locking it in to an NTSC TV. (rolling screen)

I think it still may need the addition of a few MM-Basic commands such as:
PAL ON
NTSC ON
etc.

That is all the info I have, Geoff may have some additional ideas on it.

Cheers Don...


https://www.dontronics.com
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 11:57pm 10 Oct 2011
Copy link to clipboard 
Print this post

Geoff/Greg,
I will demostrate tonight when I get home how printing something previously with a FONT other than 1,1 will cause incorrect scrolling resulting in LIST scrolling too far loosing the top lines.

Actually from memory this will do it.

Load a program with enough lines.

>FONT 1,2: PRINT "TEST": LIST

Causes my unit to roll up too far. (Try another FONT, say FONT 2,1, if 1,2 doesn't do it)

Every subsequent LIST is the same until a CLS is given.

Again, this is repeatable and I will demostrate it.

Regards,
Anthony.

 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 12:17am 11 Oct 2011
Copy link to clipboard 
Print this post

  donmck said  
  CircuitGizmos said   Speaking of composite mode, will 2.7 support NTSC? One project is on hold because of this current limitation.


I know Ken Segler had a play around with this and appears to have it working, but some people are having trouble locking it in to an NTSC TV. (rolling screen)

I think it still may need the addition of a few MM-Basic commands such as:
PAL ON
NTSC ON
etc.

That is all the info I have, Geoff may have some additional ideas on it.

Cheers Don...



Or perhaps it is an OPTION PAL, OPTION NTSC thing. It would be appreciated for this part of the globe saddled with NTSC.
Micromites and Maximites! - Beginning Maximite
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 01:07am 11 Oct 2011
Copy link to clipboard 
Print this post

  CircuitGizmos said   Speaking of composite mode, will 2.7 support NTSC? One project is on hold because of this current limitation.

Sorry to report that NTSC is not in 2.7. I never thought that NTSC was that important as all the TV sets and monitors that I have seen in recent years support both PAL and NTSC.

Geoff
Geoff Graham - http://geoffg.net
 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1313
Posted: 04:32am 11 Oct 2011
Copy link to clipboard 
Print this post

  Geoffg said  
Sorry to report that NTSC is not in 2.7. I never thought that NTSC was that important as all the TV sets and monitors that I have seen in recent years support both PAL and NTSC.
Geoff


I just ran this one past Mick, and I think that in Australia you will find that this is the case. Basically now, all new sets cater for PAL and NTSC.

However in the US, you will have trouble finding a set that is anything but NTSC only.

I'll will gladly stand corrected by any of our U.S. Maxiteers.
Comments?

And Europe. Are there any or many SECAM systems left, or have they all gone NTSC?

Would be nice to have as much global input on this one as possible.

Cheers Don...
https://www.dontronics.com
 
Vikingboy
Regular Member

Joined: 23/09/2011
Location: Australia
Posts: 82
Posted: 07:58am 11 Oct 2011
Copy link to clipboard 
Print this post

Hi Don,

As it is kinda my field I will tell you that SECAM is a transmission format and that the basic system is PAL, I would imagine that by now all their transmission has changed to digital , most of Europe use the PAL system and it is also my understanding that although most PAL countries have no trouble replaying NTSC due to multi format sets it is not as common in the US and NTSC areas.

Andrew
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 08:56am 11 Oct 2011
Copy link to clipboard 
Print this post

Whilst this is of little consequence using large Font's will later effect List and File scrolling off the top.

Eg. (The example in my previous post was erroneous)

Load a program long enough.

>CLS
>Font 2,1 : Print "Test"
then
>List

Will roll off the top line of text. Depending on combination of font's used sometimes the over-scrolling is part of a line and sometimes a whole line.


Regards,
Anthony.
 
     Page 3 of 4    
Print this page
© JAQ Software 2024