Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 13:25 05 Jul 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 : dim var as byte

     Page 9 of 16    
Author Message
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7830
Posted: 09:32am 08 Aug 2022
Copy link to clipboard 
Print this post

Eh, when I were a lad our error messages were WHAT? HOW? and SORRY.
Young 'uns these days, don't know how lucky they are!


(Any other fans of Dr. Li Chen Wang's Palo Alto Tiny BASIC?)
Mick

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

Joined: 07/06/2022
Location: United States
Posts: 313
Posted: 10:41am 08 Aug 2022
Copy link to clipboard 
Print this post

Heh, in the 80's I would get errors like "BS error in line 20" or "LS error in line 100" or "OM error in line 10"  so you had to memorize what the error codes meant.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2527
Posted: 01:38pm 08 Aug 2022
Copy link to clipboard 
Print this post

where you a "lad"? :) Or did you see the error of your ways? :)
in the 80's data was 8bit numbers that represented z80 assembler commands that were poked into ram and called as usr. No error messages just rubbish on the display.
using win the editing with a mouse eventually becomes the norm but some folk memorise shortcut key combinations.
I have apologised for saying there maybe problems with rpipico/mmbasic/mmedit as it's a new implementation.
mmedit doesn't need a terminal as I was told it has a poor one built in.
Having only just got mmedit to work is it ok or would I be better of using notepad and copy/pasteing the code into teraterm? I read teraterm only copies 256 characters which is why files I've copied are corrupted with lines missing maybe.
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1571
Posted: 02:08pm 08 Aug 2022
Copy link to clipboard 
Print this post

  stanleyella said  ... I read teraterm only copies 256 characters which is why files I've copied are corrupted with lines missing maybe.

Where "read"?
I can easily insert >256 characters in Teraterm (v 4.85). Shift-Insert.
Regards
Michael
Edited 2022-08-09 00:15 by twofingers
causality ≠ correlation ≠ coincidence
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4034
Posted: 02:18pm 08 Aug 2022
Copy link to clipboard 
Print this post

Maybe he means the length of a single line?

Generally these things are documented.

Though a line anything like 256 chars long is unreadable anyway (and easily split).

John
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3348
Posted: 02:59pm 08 Aug 2022
Copy link to clipboard 
Print this post

  stanleyella said   I read teraterm only copies 256 characters which is why files I've copied are corrupted with lines missing maybe.


Teraterm can copy/paste large amounts of text. Maybe you are trying to paste directly into the MMBasic editor--that's where the restriction is.

For the third time (from me--also from others). In your PC editor, Ctrl-A, Ctrl-C (to copy all); switch to teraterm connected to your Picomite; press F10 (AUTOSAVE); right-click or Alt-V (to paste); when pasting is done, Ctrl-Z to save and return to the ">" prompt. Takes longer to write it out or read it than it does to do it.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
pwillard
Guru

Joined: 07/06/2022
Location: United States
Posts: 313
Posted: 03:16pm 08 Aug 2022
Copy link to clipboard 
Print this post

Are you not using MMEDIT and  Maximite Control Center *MMCC* to upload files?  It's pretty much the easiest way.
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1571
Posted: 03:18pm 08 Aug 2022
Copy link to clipboard 
Print this post

  lizby said  
  stanleyella said   Maybe you are trying to paste directly into the MMBasic editor--that's where the restriction is.

I can paste directly into the MMBasic editor. I see no limit.
Sometimes I have problems when there are leading white spaces (e.g. tab characters).
causality ≠ correlation ≠ coincidence
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2527
Posted: 03:31pm 08 Aug 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  From my personal point of view, Tera Term is probably one of the best terminals you can get for Windows and it's the only one that's *guaranteed* to work wih the PicoMite without hassle. It's awful for writing programs because that's not what it does and it can't do it. :)

In spite of what some others say, I love using the built-in editor in the 'Mites. It's easier to see than the GUI editors and has a lovely 80's computer look to it. :) The only problems with it as far as I'm concerned are that you can't copy & paste blocks of over 256 characters within it and pasting pieces of code from an external file is a pain. (If I want to do patchwork programming like that I work with the SD card and do part of the editing in Notepad on the PC.) It's very fast to develop small to medium sized programs using it.

I did try an earlier version of MMEdit but we didn't get along well together, probably because I just don't like GUI editors. It's why I prefer Notepad to Notepad++ for most things. :)  I tend to go "icon blind" sometimes, where I see the icons but they lose their meaning. Without hot tips they are useless to me when I get like that.


teraterm copy/paste 256 characters only
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2527
Posted: 03:43pm 08 Aug 2022
Copy link to clipboard 
Print this post

Well, reading sprites from data is slow. I'll try original draw sprites from arrays.
https://www.youtube.com/watch?v=_SwoluBfOAI
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1571
Posted: 04:00pm 08 Aug 2022
Copy link to clipboard 
Print this post

  stanleyella said  teraterm copy/paste 256 characters only

sure?
This is what I just copied and pasted into Teraterm:
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111

I find it problematic to post unproven rumors on the internet.
causality ≠ correlation ≠ coincidence
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7830
Posted: 04:24pm 08 Aug 2022
Copy link to clipboard 
Print this post

  Quote  (If I want to do patchwork programming like that I work with the SD card and do part of the editing in Notepad on the PC.)


I can cut & paste to my heart's content if I need to. I rarely need to as I "structure" my programming, "Pushing" the tested and working routines down as I add new, untested ones at the beginning. It reduces scrolling and having to move stuff around. I seriously don't like GUI editors and IDEs. :)
Mick

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

Joined: 17/05/2016
Location: United States
Posts: 3348
Posted: 04:32pm 08 Aug 2022
Copy link to clipboard 
Print this post

  twofingers said  This is what I just copied and pasted into Teraterm:
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
...


I tried pasting this and got about 12 lines worth before it went off the rails. I seem to recall that this issue came up before and there was a matter of setting some TeraTerm timing parameter. Do you, or does anyone, recall what this might have been?

If I recall correctly, the problems I have seen in pasting into the editor have been when I was pasting into existing code and only got one line's worth--maybe that was because the editor lost incoming characters as it was pushing down the text in the display.

~
Edited 2022-08-09 02:36 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1571
Posted: 04:46pm 08 Aug 2022
Copy link to clipboard 
Print this post

  lizby said  
  twofingers said  This is what I just copied and pasted into Teraterm:
'a=&b0010111100101111001011110010111100101111001011110010111100101111
'a=&b0000000000000000000000000000000000000000000000000000000000101111
...


I tried pasting this and got about 12 lines worth before it went off the rails.
~

That's amazing!

My transmit delay setup:
10msec/char and 500msec/line
Scroll buffer 50000 lines
causality ≠ correlation ≠ coincidence
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3348
Posted: 05:13pm 08 Aug 2022
Copy link to clipboard 
Print this post

Thanks. 5 msec/char and 100 msec/line resulted in all 64 lines being pasted in.

(Now, how do I remember that the next time I paste on a laptop when those numbers haven't been set?)
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1571
Posted: 05:22pm 08 Aug 2022
Copy link to clipboard 
Print this post

  lizby said  Thanks. 5 msec/char and 100 msec/line resulted in all 64 lines being pasted in.

2 msec/char and 50 msec/line works for me too (230400 Baud).
I think the slow setup is from the old days of Micromites at 38400 Baud.

  lizby said  (Now, how do I remember that the next time I paste on a laptop when those numbers haven't been set?)

Put a "Post It" on your laptop?
causality ≠ correlation ≠ coincidence
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6268
Posted: 08:56pm 08 Aug 2022
Copy link to clipboard 
Print this post

  twofingers said  
2 msec/char and 50 msec/line works for me too (230400 Baud).
I think the slow setup is from the old days of Micromites at 38400 Baud.

The line delay is needed to give the 'mite time to process and save the line.
The size of the delay needed depends on the device. I found 100mS covers most devices. The baud rate also has some influence.

I have found that 0mS character delay and 100 mS line delay suits my collection of devices.

Jim
VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6268
Posted: 08:58pm 08 Aug 2022
Copy link to clipboard 
Print this post

  pwillard said  Are you not using MMEDIT and  Maximite Control Center *MMCC* to upload files?  It's pretty much the easiest way.

No, I am not sure why but he prefers to stay on V4.
Personal choice is fine with me.

Jim
VK7JH
MMedit
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2527
Posted: 09:14pm 08 Aug 2022
Copy link to clipboard 
Print this post

If I got 100 lines of code. please how to copy paste it,select all copy. then paste to teraterm and save run assuming teraterm is same com port as rpipico ie com 13.
copying to teraterm gives image

 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6268
Posted: 09:23pm 08 Aug 2022
Copy link to clipboard 
Print this post

You probably didn't start by entering AUTOSAVE
You can either enter AUTOSAVE by the keyboard or as the first line of the code you are pasting
VK7JH
MMedit
 
     Page 9 of 16    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025