[Coco] POKE for WIDTH 80 ?

John R. Hogerhuis jhoger at pobox.com
Sat Nov 5 15:13:18 EDT 2016


Unless your Forth is running in all ram mode the BASIC ROM should still be
callable. You just need to preserve any registers the routine would damage
in your code word.

-- John.

On Saturday, November 5, 2016, Stephen Pereira <spereira1952 at comcast.net>
wrote:

> Thanks very much for your idea, Tim.  Actually, I am looking for a POKE,
> because I can perform that type of operation out of FORTH.  I found that I
> can put the value 0 into memory location &HFFD9 while I am in FORTH, and it
> operates the same as POKE &HFFD9,0 from DECB (CoCo 3 high speed POKE).
>
> I’ll take a look at those routines in “Super Extended Color BASIC
> Unravelled” and I’ll figure out if I can use the subroutines or just do the
> same thing the subroutines do in FORTH.
>
> Thanks!
> smp
> --
> Stephen M. Pereira
> Bedford, NH  03110
> KB1SXE
>
>
> > On Nov 5, 2016, at 2:22 PM, tim lindner <tlindner at macmess.org
> <javascript:;>> wrote:
> >
> > On Sat, Nov 5, 2016 at 10:58 AM, Stephen Pereira
> > <spereira1952 at comcast.net <javascript:;>> wrote:
> >> I’ve been pouring through the “500 PEEKS, POKES and EXECS,” but I’ve
> not been able to find if there is a POKE that works the same as the WIDTH
> 80 command.  Does anyone know if there is such a POKE?  If so, what is it,
> please, and also the opposite POKE to get back to “normal” WIDTH 32.
> >
> > That book was written before the CoCo 3 was released. I know of no
> > POKE to do it, but...
> >
> > I just looked in "Super Extended Color BAISC Unravelled".
> >
> > I searched for "WIDTH". I found a subroutine at $F679 that sets 80
> column mode
> >
> > One at $F65C that sets 40 column mode.
> >
> > And one at $F652 that sets 32 column mode.
> >
> > All three of these routines finish with an RTS instruction. I believe
> > that makes them safe to use EXEC (from BASIC) with.
> >
> >
> > --
> > --
> > tim lindner
> >
> > "Proper User Policy apparently means Simon Says."
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com <javascript:;>
> > https://pairlist5.pair.net/mailman/listinfo/coco
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com <javascript:;>
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list