Re: [cc65] Directory reading

Date view Thread view Subject view

From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2003-01-30 10:27:34


>>>>> "G" == Groepaz  <groepaz_at_gmx.net> writes:

G> i upgraded to vice 1.11 yesterday.... and some of the tetris ports
G> stopped working!!! ARGLS.

I think the VICE team would benefit from a few more beta testers. A
lot of seemingly obvious features have broke in the last few releases.

G> however good to know about the autostart thing.... gotta do some
G> testing aswell :=P

I came up with a very simple workaround that should work for all
drives:

  cbm_open(1, 8, 0, "$");
  cbm_close(1);
  cbm_open(1, 8, 2, "$");
  /* do stuff */
  cbm_close(1);

That dummy open on channel 0 seems to reinitialize the drive, and then
the second open works OK.

Btw, here's the code I'm using to read dirs. It's C= specific, and
still kinda beta.

  http://www.cling.gu.se/~cl3polof/dir.zip

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp_at_cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-01-30 10:29:04 CET