Re: commodore 8032 + pet microsd

From: Ethan Dicks <ethan.dicks_at_gmail.com>
Date: Mon, 3 Oct 2016 17:15:26 -0400
Message-ID: <CAALmimmv-z73Es65dXq1M-8yMSEmFVEbU8+hGqX4Ovq7Z0d=PQ@mail.gmail.com>
On Mon, Oct 3, 2016 at 4:18 PM, didier derny <didier@aida.org> wrote:
> Hi
>
> I connected a pet microsd to my 8032 mother board

This model?

http://blog.tynemouthsoftware.co.uk/2015/06/pet-microsd-commodore-pet-sd-card-disk-drive.html

> DIRECTORY
> ready.
>
> dload "WEDGE"
>
> searching for 0:WEDGE
> file not found
>
> print ds;ds$
>
> gives:
> ds = 10
> ds$ = empty string

Have you tried

LOAD"$",8

or typing in a 1-2 line BASIC program and

SAVE"MYPROG",8

I have a similar product, a PETdisk - http://www.bitfixer.com/bf/petdisk

It does not work with DIRECTORY but it does work with LOAD"$",8 (with
the firmware I have, which might be one rev old, I have to check
that).

I haven't tracked down bus-transaction-by-bus-transaction precisely
how DIRECTORY is implemented in the BASIC 4.0 ROMs, but ISTR in the
DOS Wedge, the code does _not_ do the exact equivalent of a 'LOAD
"$",8' but rather does an 'OPEN"$",8' and reads the bytes and does a
small amount of formatting/trimming of the raw stream before printing
the results.  If someone who _does_ know exactly how it works could
comment, I'd love to hear the difference.  I've also skimmed over the
code for the 1541 drive and I think LOAD"$",8 and OPEN"$",8 do similar
but not exactly the same things.

Not sure about reading DS/DS$.  That's also going to be
emulator-specific and I don't have the same product as you, even if
the DIRECTORY/LOAD"$",8 problem could be similar.

-ethan

       Message was sent through the cbm-hackers mailing list
Received on 2016-10-03 22:00:02

Archive generated by hypermail 2.2.0.