[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ciderpress for OS/X?



On Aug 14, 11:27 am, "John B. Matthews" <nos...@nospam.invalid> wrote:
> In article
> <1af9176a-af61-4dc1-8395-407c643f0...@d34g2000vbm.googlegroups.com>,
>
>
>
>
>
>  datajerk <dataj...@gmail.com> wrote:
> > On Aug 13, 3:45 pm, "John B. Matthews" <nos...@nospam.invalid> wrote:
> > > I ran this on Sweet16 2.1.1, ProDOS 2.0.3 (06-May-93), ROM 3 firmware.
>
> > Still no love.  I tried Sweet16 2.1.1, ProDOS8 2.0.3, ProDOS BASIC
> > 1.5, ROM 3 firmware with the above/below code and I cannot access the
> > clock after col80 is setup.  I get the same results on Virtual ][
> > emulating a //e.
> [...]
> > I speculate that the above code some how hoses slot 7 (where the clock
> > card is).
>
> > jsr c300 with Aztec C does work and does not interfere with the clock
> > card.  Perhaps a bug in cc65.  I am out of ideas and permutations to
> > try.
>
> > Hint:  The __asm__ code some how hoses basic 1.5.  I have to reboot to
> > run a second test.
>
> > Thanks again for your help.
>
> I'm nonplussed. To obviate any effect from Basic 1.5 and my menu, I
> built a boot disk with just ProDOS 2.0.3, loader.system from the the
> "contrib" folder at <ftp://ftp.musoftware.de/pub/uz/cc65/>, and this
> test code compiled with a recent build of cc65 V2.12.0:
>
> <http://sites.google.com/site/trashgod/Home/p1.po>
>
> #include <conio.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <time.h>
>
> /* Assume 80-column card, ProDOS, Basic */
> void col80() {
>     __asm__ ("jsr %w", 0xc300);
>     __asm__ ("lda %b", 0x36);
>     __asm__ ("sta %w", 0xbe30);
>     __asm__ ("lda %b", 0x37);
>     __asm__ ("sta %w", 0xbe31);
>     __asm__ ("lda %b", 0x38);
>     __asm__ ("sta %w", 0xbe32);
>     __asm__ ("lda %b", 0x39);
>     __asm__ ("sta %w", 0xbe33);
>
> }
>
> int main (void) {
>
>     time_t starttime = time(NULL);
>     time_t endtime = time(NULL);
>
>     col80();
>
>     printf("Start time: %s\n",asctime(localtime(&starttime)));
>     printf("  End time: %s\n",asctime(localtime(&endtime)));
>     printf("Done!  Press any key to exit.");
>     cgetc();
>
>     return EXIT_SUCCESS;
>
> }
>
> --
> John B. Matthews
> trashgod at gmail dot com
> <http://sites.google.com/site/drjohnbmatthews>

Loader.system.  Thanks for the tip.

If you change:

time_t starttime = time(NULL);
time_t endtime = time(NULL);
col80();

to:

col80();
time_t starttime = time(NULL);
time_t endtime = time(NULL);

Then you'll see my problem.  Once col80 is called, the time card
cannot be read.  -1 is returned.  basic.system and loader.system--same
results.

Thanks again.