Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site decwrl.DEC.COM Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!dec-rhea!dec-vogon!goodenough From: goodenough@vogon.DEC (Jeff Goodenough IPG REO2-F/L9) Newsgroups: net.micro.cbm Subject: Problems with directing output to printer Message-ID: <812@decwrl.DEC.COM> Date: Thu, 30-Jan-86 05:09:02 EST Article-I.D.: decwrl.812 Posted: Thu Jan 30 05:09:02 1986 Date-Received: Sat, 1-Feb-86 03:45:15 EST Sender: daemon@decwrl.DEC.COM Organization: Digital Equipment Corporation Lines: 21 Help! The following code, using C64 Kernel routines, is supposed to direct listing output to the device specified in LISDEV. I've done everything that the PRG says I should do, but the output still comes out on the screen, even when I set LISDEV to 4 for the printer. What am I doing wrong?? Jeff. LDX LISDEV BEQ ... ; zero = no listing required LDY #$FF ; no command LDA #1 ; logical file #1 JSR SETLFS LDA #0 ; no file name JSR SETNAM JSR OPEN LDX LISDEV JSR CHKOUT ; set LISDEV to listen .. .. .. .. LDA char JSR CHROUT ; still goes to screen