From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2002-07-13 05:11:11
I've been staring myself blind on this, and I can't figure out what's wrong with it. unsigned char writetrack(unsigned char device, unsigned char *buffer, unsigned char track, unsigned char blockcount) { unsigned char s; unsigned char cmd[15]; /*for (s = 0; s < blockcount; s++) {*/ s = 0; cbm_open(15, device, 15, NULL); cbm_open(2, device, 2, "#"); if (cbm_write(2, 256*s + buffer, 256) < 0) { putchar('0' + (unsigned char) _oserror); } else { putchar('.'); } sprintf(cmd, "u2: 2 0 %d %d", track, s); cbm_write(15, cmd, strlen(cmd)); cbm_close(2); cbm_close(15); /*}*/ return(OK); } Blinking led is the result, and reading the error channel gives me 73, jiffydos 6.0 1571, 18, 00. WTF? -- ___ . . . . . + . . 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.
This archive was generated by hypermail 2.1.3 : 2002-07-13 05:17:06 CEST