Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!evax!cs4344af From: cs4344af@evax.arl.utexas.edu (Fuzzy Fox) Newsgroups: comp.sys.cbm Subject: Re: Save a seq file in assembly Message-ID: <1990Nov28.000800.6513@evax.arl.utexas.edu> Date: 28 Nov 90 00:08:00 GMT References: <1854@mentor.cc.purdue.edu> Organization: Computer Science Engineering Univ. of Texas at Arlington Lines: 19 In article <1854@mentor.cc.purdue.edu> piskacrj@mentor.cc.purdue.edu (Robert J Piskac) writes: > lda #3 > ldx #$08 > ldy #0 > jsr setlfs You should not use addresses 0 or 1 when you are using data files (accessed through the OPEN, CKOUT, etc. calls). Choose a number from 2-14 instead. For instance, LDY #3 would work great above. >eofsave lda #3 > jsr close > jsr clrchn You have the above routines called in the wrong order. You should call CLRCHN first to flush the last characters to the disk and shut down the communication channel, then you can CLOSE it. Fuzzy