Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #2805

Re: prodos 2.0.3?

Newsgroups comp.sys.apple2.programmer
Date 2016-06-30 15:27 -0700
References (3 earlier) <2e36c52f-0474-486e-9bcc-640df022fcf9@q21g2000yqm.googlegroups.com> <08d24219-e14c-427e-9d4d-de29e6f1e3ed@x12g2000yqx.googlegroups.com> <93c6e2ee-1651-4626-a7b3-a315dbcee56c@19g2000yqu.googlegroups.com> <56bcbb35-ecaa-45ae-a144-93e86e52d769@i25g2000yqm.googlegroups.com> <71f12aa5-c86c-4485-a6f8-4549ef28fadd@googlegroups.com>
Message-ID <b97dcd5b-5410-4622-a0f6-e147366d154d@googlegroups.com> (permalink)
Subject Re: prodos 2.0.3?
From Michael Pohoreski <michael.pohoreski@gmail.com>

Show all headers | View raw


On Thursday, June 30, 2016 at 1:27:19 PM UTC-7, John Brooks wrote:
> Prodos Tech Note #21 contains this example code:
> 
>             LDA    #$04        ;require at least ProDOS 8 1.4
>             CMP    $BFFF       ;KVERSION (ProDOS 8 version)
>             BEQ    MoreNetwork ;have to check further
> 
> http://www.1000bit.it/support/manuali/apple/technotes/pdos/tn.pdos.21.html


OT: Ah, that's the TN that mentions the device id's!

- - - 8< - - -

What to Do With the Slot Number

Once you have the slot number, you can look at the slot I/O ROM space to determine the kind of device it is. As described in the ProDOS 8 Technical Reference Manual, ProDOS looks for the following ID bytes in ROM to determine if a ProDOS device is in a slot:


    $Cn01 = $20
    $Cn03 = $00
    $Cn05 = $03

- - - 8< - - -

I see Disk Drive Interface Firmware has these prefix bytes:

Apple //c

C600:A2 20    LDX #$20 ; diskid[0] = $20
C602:A0 00    LDY #$00 ; diskid[1] = $00
C604:64 03    STZ $03  ; diskid[2] = $03

Apple //e

C600:A2 20    LDX #$20 ; diskid[0] = $20
C602:A0 00    LDY #$00 ; diskid[1] = $00
C604:A2 03    LDX #$03 ; diskid[2] = $03

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: prodos 2.0.3? John Brooks <jbrooks@blueshiftinc.com> - 2016-06-30 13:27 -0700
  Re: prodos 2.0.3? Antoine Vignau <antoine.vignau@laposte.net> - 2016-06-30 14:32 -0700
  Re: prodos 2.0.3? Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-06-30 15:27 -0700
    Re: prodos 2.0.3? John Brooks <jbrooks@blueshiftinc.com> - 2016-06-30 17:29 -0700

csiph-web