home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.cbm
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!sun.rhrk.uni-kl.de!zx1!uet019
- From: uet019@zx1.Darkcrystal.Cyberspace (Oliver B. Warzecha)
- Subject: Re: Strange bug/problem...
- Message-ID: <1992Nov17.112541.13329@rhrk.uni-kl.de>
- Sender: news@rhrk.uni-kl.de
- Reply-To: uet019@zx1.hrz.uni-dortmund.de
- Organization: University of Dortmund, Germany
- X-Newsreader: TIN [version 1.1 PL6]
- References: <1992Nov16.014957.1@kosmos.wcc.govt.nz>
- Date: Tue, 17 Nov 1992 11:25:41 GMT
- Lines: 54
-
- mcmillan_a@kosmos.wcc.govt.nz wrote:
- : Help! Does anyone know why the following program does NOT work properly on a
- : C-128, but is fine on a C-64 or Plus/4? (All using the same 1571 disk drive.)
- :
- : 10 open5,9,5,"source,s,r"
- : 20 open6,9,6,"newfile,s,w"
- : 30 sys4864
- : 40 close5:close6:end
- :
- : . 1300 a2 05 ldx #$05
- : . 1302 20 c6 ff jsr $ffc6 CHKIN ;aha
- : . 1305 20 e4 ff jsr $ffe4 GETIN
- : . 1308 a6 90 ldx $90 STATUS
- : . 130a 86 02 stx $02
- : . 130c 48 pha
- : . 130d a2 06 ldx #$06
- : . 130f 20 c9 ff jsr $ffc9 CKOUT ;? what if loop runs 2nd time
- : . 1312 68 pla
- : . 1313 20 d2 ff jsr $ffd2 BSOUT
- : . 1316 a6 02 ldx $02
- : . 1318 f0 e6 beq $1300
- : . 131a 20 cc ff jsr $ffcc CLRCH ;kind of late after all this CHKIN
- : . 131d 60 rts ;and CHKOUT
- :
- : Any solution much appreciated.
- :
- : Cheers - Kirk
- :
- Hmmm... perhaps the 128 handles I/O-channels better than the 64 or +4. As
- you can read in my comments above there seems to be a little too many CHKIN
- and CHKOUT before the I/O-channels are cleared. My suggestion: Use the
- following:
-
- ldx #$05
- jsr CHKIN
- ldx #$06
- jsr CHKOUT
- loop jsr GETIN
- ldx $90
- jsr CHROUT
- txa
- beq loop
- jsr CLRCHN
- rts
-
- If this doesn't work either ,I have no idea what to do...
-
- OBW
- uet019@zx1.hrz.uni-dortmund.de
-
- "No flag or uniform ever stopped the bullet of a gun"
- Out in the fields - Moore/Lynott
- "Endings are just beginnings"
- Amarok - Mike Oldfield
-