Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 (Tek) 9/28/84 based on 9/17/84; site tektools.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!tektronix!daemon!tektools!joels From: joels@tektools.UUCP (Joel Swank) Newsgroups: net.micro.cbm Subject: Re: Next print location on the screen Message-ID: <78@tektools.UUCP> Date: Wed, 2-Jan-85 11:21:45 EST Article-I.D.: tektools.78 Posted: Wed Jan 2 11:21:45 1985 Date-Received: Sun, 6-Jan-85 00:06:38 EST References: <2@omovax.UUCP> <425@ecsvax.UUCP> Organization: Tektronix, Beaverton OR Lines: 19 > x > The PLOT routine in the kernal ($FFF0 or65520) will position the cursor for you. Load the Y register with the column number, 0-39, and the X resister with the row number, 0-24, clear the carry flag and JSR to FFF0. > > If you want to do that from BASIC, you can poke the Y value into 782 and the X value into 781. I don't know how to clear the carry flag except to SYS to a short routine that contains these numbers: > 24,76,240,255 > > This will jump to FFFO for you and then return to BASIC. Location 783 is the initial P reg for SYS calls. To clear carry (and all other flags) poke a 0 here. Location 780 passes the A reg. All 4 locations can be peeked after retrurn from the SYS to see the contents of the registers after the ML subroutine has executed. Joel Swank Software Center Tools Support 50-487 Tektronix Beaverton OR 97077 (503) 627-4403