Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!rochester!pt.cs.cmu.edu!andrew.cmu.edu!ww0n# From: ww0n#@andrew.cmu.edu.UUCP Newsgroups: comp.sys.m6809 Subject: Disabling BASIC's screen refresh Message-ID: <4UK9X1y00UoBz7o0Lw@andrew.cmu.edu> Date: Fri, 13-Mar-87 18:39:44 EST Article-I.D.: andrew.4UK9X1y00UoBz7o0Lw Posted: Fri Mar 13 18:39:44 1987 Date-Received: Sat, 14-Mar-87 11:53:45 EST Organization: Carnegie-Mellon University Lines: 45 ReSent-Date: Fri, 13 Mar 87 18:42:30 est ReSent-From: postman#@andrew.cmu.edu ReSent-To: nntp-xmit#@andrew.cmu.edu Return-path: X-Trace: MS Version 3.21 on ibm032 host darby, by ww0n (1363). To: outnews#ext.nn.comp.sys.m6809@andrew.cmu.edu Something I have always wanted to straighten out is the proper way to prevent BASIC from resetting special screen settings. For example, I use: POKE &HE045, PEEK(&HE045) OR 16 POKE &HE047, 0 ATTR 3,2 to set my COCO 3 up for a monochrome monitor in 80-column mode. For the regular old 32-column mode, I use: POKE &H95C9, 255 POKE &HFF22, &H3D POKE &HE033, 16 POKE &HE035, 0 which sets up the COCO 3 for monochrome and lowercase. The important point here is my use of POKE &H95C9, 255 to prevent BASIC from resetting the value I POKEd into $FF22. The method you see most of the time is: POKE 359, x or POKE &H167, x where x=0 or 57 or some other value claimed to do the job. Don't use this method! Address $167 is a jump vector which points to the disk i/o routines and funny things happen when it is changed. I disassembled the code which actually resets the screen and found: $95C5 LDA >$FF22 $95C8 ANDA #$07 $95CA STA >$FF22 Therefore, when you change the value at $95C9, you change what is ANDed with the contents of the PIA register at $FF22. By using 255, no change is made to the current contents. Of course, you could NOP out all the code or get fancy and do something else -- the choice is yours -- this is just a quick, easy method. Walter L. Wimer, III Carnegie Mellon University Arpanet: ww0n@@andrew.cmu.edu Bitnet: ww0n%andrew.cmu.edu@@cmuccvma or ww0n@@cmuccvma