[Coco] Bit-Banger Serial as external console?
M. David Johnson
mdj at bds-soft.com
Wed Mar 27 00:34:24 EDT 2019
BTW, which assembler did you use? - it appears to have some superior qualities with respect to EDTASM - especially with the ability to have multiple FDBs (and FCBs) per line.
--
M. David Johnson
mdj at bds-soft.com
-----Original Message-----
From: Coco [mailto:coco-bounces at maltedmedia.com] On Behalf Of Stephen Pereira
Sent: Tuesday, March 26, 2019 7:29 AM
To: CoCoList for Color Computer Enthusiasts
Subject: Re: [Coco] Bit-Banger Serial as external console?
Hi Dave,
I’m sorry, but you must have a corrupt copy somehow.
In my original package, I provided the CCF-DOLR program that utilized the +LOOP command. Indeed, +LOOP is in there.
Another thing to remember is that a bunch of the FORTH must be loaded in by LSCR and the CCF-MISC screens right after you start up. Yes, I just looked it up, and +LOOP is in CCF-MISC. If you take another look at my instructions, you will see that I indicated one might want to load the CCF-MISC screens right away after starting up.
I apologize. I guess I should have said that one MUST load the CCF-MISC screens in order to get all the FORTH words in there.
You can check the +LOOP definition:
: +LOOP 3 ?PAIRS COMPILE (+LOOP) BACK ; IMMEDIATE
Good luck!
smp
- - -
Stephen Pereira
Bedford, NH 03110
KB1SXE
> On Mar 25, 2019, at 11:37 PM, M. David Johnson <mdj at bds-soft.com> wrote:
>
> Steve -
>
> I don't have an answer on the Bit-Banger.
>
> But I have run into a problem with Talbot's Color Forth: the word +LOOP does not seem to be present in the dictionary.
>
> And, when I tried to create +LOOP in the fig-forth fashion, to wit:
>
> : +LOOP 3 ?PAIRS COMPILE (+LOOP) BACK ;
>
> it compiled okay, but when I tried to use it, i.e. in:
>
> : T 6 0 DO 44 . 2 +LOOP ;
>
> It gives:
>
> ;(-? 20
>
> I'm in the middle of looking into the source code now; I'm about 1/3 of the way done with breaking the compressed text into the common 4-column Assembly Language format. But so far, on first scan, it appears that +LOOP is indeed not in the source.
>
> Why the newly compiled +LOOP doesn't work is not yet apparent.
>
> --
> M. David Johnson
> mdj at bds-soft.com
>
>
> -----Original Message-----
> From: Coco [mailto:coco-bounces at maltedmedia.com] On Behalf Of Stephen Pereira
> Sent: Monday, March 25, 2019 2:19 PM
> To: CoCoList for Color Computer Enthusiasts
> Subject: [Coco] Bit-Banger Serial as external console?
>
> Hello folks,
>
> I’ve been dormant for quite some time on this list and with my CoCo…
>
> I have a stock CoCo 3 with Zipster’s SDC, and that’s all right now. As you may recall, a couple (few?) years ago, I modified the Talbot Microsystems Color Forth to work in RAM along with DECB. I have that running on my SDC, and I’ve been searching around for a project to work on. All my other vintage computer systems use my laptop computer as an external console. This allows me to work on programs externally and send them in to the computer system, rather than tediously type them in on the vintage machine. Not so with the CoCo. Since the CoCo is an all-in-one system, I have no external console to send my programs in from, as with my other machines.
>
> I would love to add an external console to my CoCo. I thought this might be a good project to get me back into Forth programming. I looked around a bit, but I have not found any information on system calls that can be used to perform character input and output via the bit-banger serial port. I saw in the “Unraveled” book for the CoCo Basic ROMs that the is a ROM call for doing output - quite logical, since this port was used for the printer output port. But I have not found anything about doing input from that same port.
>
> Since Drivewire uses that port, I know that it can do both output and input. Can anyone provide me any pointers to information on using the bit-banger serial port? Any code examples would be appreciated. My intent is to write up my code in Forth to add an external console. I can start up normally, then invoke the code to switch to the external console. I figure that I can use a control-z or something like that as a flag to switch back to the normal console after I’ve sent in my code.
>
> Thanks very much, in advance, for any thoughts, pointers, or advice that you may have to offer.
>
> smp
> - - -
> Stephen Pereira
> Bedford, NH 03110
> KB1SXE
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco
mailing list