Re: [M100] Basic file ending question

2020-03-27 Thread Kurt McCullum
Thanks for the info Tom. I modified my test file and added two zero bytes. No change. Interesting that it works fine on my NEC but only on the first bank. I seem to recall that I wasn't able to do this on banks 2 and three before. My T102 has the same issue. It's a mystery for now. I'll keep

Re: [M100] Basic file ending question

2020-03-27 Thread Brian K. White
Normally, a BASIC program wont' have control characters encoded in the program itself Normally, but only normally. There are basic files with all kinds of things embedded. They are uncommon and they are hacks to get around other limitations, but they exist and they work with a real M100

Re: [M100] Basic file ending question

2020-03-27 Thread Tom Wilson
In memory, a BASIC program should end with three zero bytes. The end of the last line is a null, followed by a 16-bit null pointer. (The first two bytes of a line are a 16-bit pointer to the beginning of the next line.) However, it looks like the files I have saved on my LaddieAlpha root all end

Re: [M100] Basic file ending question

2020-03-27 Thread Kurt McCullum
Thanks Ken, That's what I'm seeing here. But both Windows and Linux are giving the same results so I suspect I'm missing something. Time to walk away and clear my brain before I try to tackle it again. At least I have a working TPDD emulator with Directory and Sardine support that should be

Re: [M100] Basic file ending question

2020-03-27 Thread Ken Pettit
But I don't believe the final h bytes are written to the file when saving ... only the final 00h line ending byte. The h is an in-memory only termination, at least looking at the tokenized .BA files I have available. Ken On 3/27/20 4:36 PM, Kurt McCullum wrote: Yes, tokenized BASIC.

Re: [M100] Basic file ending question

2020-03-27 Thread Ken Pettit
On Fri, Mar 27, 2020 at 3:25 PM Kurt McCullum > wrote: I've been working on a Python version of mComm to run on a Linux box I've got setup. Quick question about Basic files. Is there a specific file ending that Basic is looking for? BASIC looks for

Re: [M100] Basic file ending question

2020-03-27 Thread Kurt McCullum
Yes, tokenized BASIC. My guess is I'm missing a byte but I'll have to do a hex file comparison from a windows machine vs linux to see what the problem is. Kurt On Fri, Mar 27, 2020, at 4:04 PM, John R. Hogerhuis wrote: > > > On Fri, Mar 27, 2020 at 3:25 PM Kurt McCullum wrote: >> __ >> I've

Re: [M100] Basic file ending question

2020-03-27 Thread John R. Hogerhuis
On Fri, Mar 27, 2020 at 3:25 PM Kurt McCullum wrote: > I've been working on a Python version of mComm to run on a Linux box I've > got setup. Quick question about Basic files. Is there a specific file > ending that Basic is looking for? > > I ask because I can create a hello world program, save

[M100] Basic file ending question

2020-03-27 Thread Kurt McCullum
I've been working on a Python version of mComm to run on a Linux box I've got setup. Quick question about Basic files. Is there a specific file ending that Basic is looking for? I ask because I can create a hello world program, save it with TS-DOS, re-load it and everything works. BUT when I