Re: [M100] fig-FORTH

2019-02-04 Thread John R. Hogerhuis
The usual way to do this is a post assembly step that takes a hex file or
binary data and creates a Basic program that can poke the contents into
memory.

That's what I did with hterm. I have makefiles and Perl scripts but that
may be overkill for you (of course, nothing kills like overkill).

The best way of course is a Tpdd client in ROM and then you build a CO
directly on your PC and transfer that in. But that requires a tsdos rom or
rex.

One trick for reading and writing ascii files to the serial port is to
either save/load from the basic prompt or save / load from TEXT. This
avoids and screen I/O which allows a faster baud rate.

-- John.

On Mon, Feb 4, 2019, 5:37 AM Stephen Pereira 
> I don't know offhand of any HEX loaders that load from the serial port
> but that just means I haven't needed one. ;-)
>
>
> I found that CHANGE.BA will save and load hex files to and from the
> serial port.  I’ve carved out the bit of code that loads files, and I’m
> experimenting with that now.
>
> smp
> - - -
> Stephen Pereira
> Bedford, NH  03110
> KB1SXE
>
>
>
>


Re: [M100] fig-FORTH

2019-02-04 Thread Stephen Pereira
> 
> I don't know offhand of any HEX loaders that load from the serial port
> but that just means I haven't needed one. ;-)
> 

I found that CHANGE.BA will save and load hex files to and from the serial 
port.  I’ve carved out the bit of code that loads files, and I’m experimenting 
with that now.

smp
- - -
Stephen Pereira
Bedford, NH  03110
KB1SXE





Re: [M100] fig-FORTH

2019-02-02 Thread Willard Goosey
On Sat, 2 Feb 2019 11:39:23 -0500
Stephen Pereira  wrote:

> Subject: [M100] fig-FORTH

If you're not intent on starting this from scratch, the old CIS m100
archive (on club100 -- huge 23meg download but worth it!) has a
fig-FORTH with various support files in lib-08. There's also a version
in the Club 100 UPS archive (old member uploads)
(club100.org/library/libups.html -- in comet's section) but it requires
the chipmunk floppy drive :-(

I'm not a FORTH guy myself, sorry. I can do 1 1 + . but I can't ever
seem to get further than that. :-(

I don't know offhand of any HEX loaders that load from the serial port
but that just means I haven't needed one. ;-)

Willard
-- 
Willard Goosey  goo...@sdc.org
Socorro, New Mexico, USA
I search my heart and find Cimmeria, land of Darkness and the Night.
  -- R.E. Howard


Re: [M100] fig-FORTH

2019-02-02 Thread Josh Malone
Arcadeshopper.com should be able to sell you a REX

On Sat, Feb 2, 2019, 3:40 PM Stephen Pereira  Yes, one day, if I can acquire a REX, that will be the first ROM image I
> will try to install.
>
> Here’s hoping I can get a REX!
>
> Thanks,
> smp
> - - -
> Stephen Pereira
> Bedford, NH  03110
> KB1SXE
>
>
> On Feb 2, 2019, at 2:46 PM, John R. Hogerhuis  wrote:
>
> You might want to look at MForth, source code is available. It's a fast
> ANS forth and runs from ROM.
>
> You could use it to find the info you want to port fig forth or even
> better, if you have a REX or rom burner, extend it. It would be nice to
> have some more wordsets or a maybe compiler to produce stand alone CO files
> that could be distributed without the ROM.
>
> http://www.strangegizmo.com/products/mforth/
>
> -- John.
>
> On Sat, Feb 2, 2019, 8:39 AM Stephen Pereira <
> stephen.m.pereira...@gmail.com wrote:
>
>> Hello all,
>>
>> One of the things that I’ve done a number of times is to get the original
>> fig-FORTH running on my vintage computers.  I have it running on my CP/M
>> machines, my SWTPC (clone from Corsham Tech), and my Tandy Color Computer.
>>
>> I would very much like to get it to go on my new-to-me Model 102.
>>
>> There are two things that I need:
>>
>> -  What are the calls into the Model 102 ROM for doing keyboard input and
>> screen output?
>>
>> - Since the fig-FORTH file will be quite large, I’ll be looking to
>> assemble it on another computer and then send the Intel hex file into the
>> Model 102.  I would love to get a program similar to HEXLDR, that reads a
>> true Intel hex file - BUT I need it to have the file sent in to it via the
>> serial I/O port, rather than reading it from a .DO file.  This is because
>> my 32K machine does not have enough memory to hold the hex file in a .DO
>> file, and have the HEXLDR program, and clear enough memory to load the
>> fig-FORTH into, all at the same time.
>>
>> Any thoughts , advice, or assistance would be greatly appreciated!
>>
>> smp
>> - - -
>> Stephen Pereira
>> Bedford, NH  03110
>> KB1SXE
>>
>>
>>
>


Re: [M100] fig-FORTH

2019-02-02 Thread John R. Hogerhuis
On Sat, Feb 2, 2019 at 12:40 PM Stephen Pereira <
stephen.m.pereira...@gmail.com> wrote:

> Yes, one day, if I can acquire a REX, that will be the first ROM image I
> will try to install.
>
> Here’s hoping I can get a REX!
>
>
That's fine... either way, it has the code you need to interface with the
hardware in an arrangement a forth programmer would understand.

Ken Pettit has a complete disassembly of the ROM in his personal files on
club100.

And if you can get your hands on the books "Hidden Powers of the TRS-80
Model 100" and "Inside the Model 100" they are good programming books.

You're going to need a cross assembler. TASM is what I use but it no longer
seems to be available. I can send you a copy.

You might be better off with as  cross assembler though because I think
that is what Willard uses and he actively maintains header files you can
use.

-- John.


Re: [M100] fig-FORTH

2019-02-02 Thread Stephen Pereira
Yes, one day, if I can acquire a REX, that will be the first ROM image I will 
try to install.

Here’s hoping I can get a REX!

Thanks,
smp
- - -
Stephen Pereira
Bedford, NH  03110
KB1SXE


> On Feb 2, 2019, at 2:46 PM, John R. Hogerhuis  wrote:
> 
> You might want to look at MForth, source code is available. It's a fast ANS 
> forth and runs from ROM. 
> 
> You could use it to find the info you want to port fig forth or even better, 
> if you have a REX or rom burner, extend it. It would be nice to have some 
> more wordsets or a maybe compiler to produce stand alone CO files that could 
> be distributed without the ROM. 
> 
> http://www.strangegizmo.com/products/mforth/ 
> 
> 
> -- John. 
> 
> On Sat, Feb 2, 2019, 8:39 AM Stephen Pereira   wrote:
> Hello all,
> 
> One of the things that I’ve done a number of times is to get the original 
> fig-FORTH running on my vintage computers.  I have it running on my CP/M 
> machines, my SWTPC (clone from Corsham Tech), and my Tandy Color Computer.
> 
> I would very much like to get it to go on my new-to-me Model 102.
> 
> There are two things that I need:
> 
> -  What are the calls into the Model 102 ROM for doing keyboard input and 
> screen output?
> 
> - Since the fig-FORTH file will be quite large, I’ll be looking to assemble 
> it on another computer and then send the Intel hex file into the Model 102.  
> I would love to get a program similar to HEXLDR, that reads a true Intel hex 
> file - BUT I need it to have the file sent in to it via the serial I/O port, 
> rather than reading it from a .DO file.  This is because my 32K machine does 
> not have enough memory to hold the hex file in a .DO file, and have the 
> HEXLDR program, and clear enough memory to load the fig-FORTH into, all at 
> the same time.
> 
> Any thoughts , advice, or assistance would be greatly appreciated!
> 
> smp
> - - -
> Stephen Pereira
> Bedford, NH  03110
> KB1SXE
> 
> 



Re: [M100] fig-FORTH

2019-02-02 Thread John R. Hogerhuis
You might want to look at MForth, source code is available. It's a fast ANS
forth and runs from ROM.

You could use it to find the info you want to port fig forth or even
better, if you have a REX or rom burner, extend it. It would be nice to
have some more wordsets or a maybe compiler to produce stand alone CO files
that could be distributed without the ROM.

http://www.strangegizmo.com/products/mforth/

-- John.

On Sat, Feb 2, 2019, 8:39 AM Stephen Pereira  Hello all,
>
> One of the things that I’ve done a number of times is to get the original
> fig-FORTH running on my vintage computers.  I have it running on my CP/M
> machines, my SWTPC (clone from Corsham Tech), and my Tandy Color Computer.
>
> I would very much like to get it to go on my new-to-me Model 102.
>
> There are two things that I need:
>
> -  What are the calls into the Model 102 ROM for doing keyboard input and
> screen output?
>
> - Since the fig-FORTH file will be quite large, I’ll be looking to
> assemble it on another computer and then send the Intel hex file into the
> Model 102.  I would love to get a program similar to HEXLDR, that reads a
> true Intel hex file - BUT I need it to have the file sent in to it via the
> serial I/O port, rather than reading it from a .DO file.  This is because
> my 32K machine does not have enough memory to hold the hex file in a .DO
> file, and have the HEXLDR program, and clear enough memory to load the
> fig-FORTH into, all at the same time.
>
> Any thoughts , advice, or assistance would be greatly appreciated!
>
> smp
> - - -
> Stephen Pereira
> Bedford, NH  03110
> KB1SXE
>
>
>


[M100] fig-FORTH

2019-02-02 Thread Stephen Pereira
Hello all,

One of the things that I’ve done a number of times is to get the original 
fig-FORTH running on my vintage computers.  I have it running on my CP/M 
machines, my SWTPC (clone from Corsham Tech), and my Tandy Color Computer.

I would very much like to get it to go on my new-to-me Model 102.

There are two things that I need:

-  What are the calls into the Model 102 ROM for doing keyboard input and 
screen output?

- Since the fig-FORTH file will be quite large, I’ll be looking to assemble it 
on another computer and then send the Intel hex file into the Model 102.  I 
would love to get a program similar to HEXLDR, that reads a true Intel hex file 
- BUT I need it to have the file sent in to it via the serial I/O port, rather 
than reading it from a .DO file.  This is because my 32K machine does not have 
enough memory to hold the hex file in a .DO file, and have the HEXLDR program, 
and clear enough memory to load the fig-FORTH into, all at the same time.

Any thoughts , advice, or assistance would be greatly appreciated!

smp
- - -
Stephen Pereira
Bedford, NH  03110
KB1SXE