home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / cbm / 4585 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.0 KB  |  68 lines

  1. Newsgroups: comp.sys.cbm
  2. 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
  3. From: uet019@zx1.Darkcrystal.Cyberspace (Oliver B. Warzecha)
  4. Subject: Re: Strange bug/problem...
  5. Message-ID: <1992Nov17.112541.13329@rhrk.uni-kl.de>
  6. Sender: news@rhrk.uni-kl.de
  7. Reply-To: uet019@zx1.hrz.uni-dortmund.de
  8. Organization: University of Dortmund, Germany
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. References: <1992Nov16.014957.1@kosmos.wcc.govt.nz>
  11. Date: Tue, 17 Nov 1992 11:25:41 GMT
  12. Lines: 54
  13.  
  14. mcmillan_a@kosmos.wcc.govt.nz wrote:
  15. : Help! Does anyone know why the following program does NOT work properly on a
  16. : C-128, but is fine on a C-64 or Plus/4? (All using the same 1571 disk drive.)
  17. : 10 open5,9,5,"source,s,r"
  18. : 20 open6,9,6,"newfile,s,w"
  19. : 30 sys4864
  20. : 40 close5:close6:end
  21. : . 1300  a2 05    ldx #$05
  22. : . 1302  20 c6 ff jsr $ffc6  CHKIN ;aha
  23. : . 1305  20 e4 ff jsr $ffe4  GETIN 
  24. : . 1308  a6 90    ldx $90   STATUS
  25. : . 130a  86 02    stx $02
  26. : . 130c  48       pha 
  27. : . 130d  a2 06    ldx #$06
  28. : . 130f  20 c9 ff jsr $ffc9  CKOUT ;? what if loop runs 2nd time
  29. : . 1312  68       pla 
  30. : . 1313  20 d2 ff jsr $ffd2  BSOUT
  31. : . 1316  a6 02    ldx $02
  32. : . 1318  f0 e6    beq $1300
  33. : . 131a  20 cc ff jsr $ffcc  CLRCH ;kind of late after all this CHKIN
  34. : . 131d  60       rts              ;and CHKOUT
  35. : Any solution much appreciated.
  36. : Cheers - Kirk
  37. Hmmm... perhaps the 128 handles I/O-channels better than the 64 or +4. As
  38. you can read in my comments above there seems to be a little too many CHKIN
  39. and CHKOUT before the I/O-channels are cleared. My suggestion: Use the
  40. following:
  41.  
  42.     ldx #$05
  43.     jsr CHKIN
  44.     ldx #$06
  45.     jsr CHKOUT
  46. loop    jsr GETIN
  47.     ldx $90
  48.     jsr CHROUT 
  49.     txa
  50.     beq loop
  51.     jsr CLRCHN
  52.     rts
  53.  
  54. If this doesn't work either ,I have no idea what to do...
  55.  
  56. OBW
  57. uet019@zx1.hrz.uni-dortmund.de
  58.  
  59. "No flag or uniform ever stopped the bullet of a gun" 
  60. Out in the fields - Moore/Lynott
  61. "Endings are just beginnings"
  62. Amarok - Mike Oldfield
  63.