Nп/п : 59 из 100
 От   : Joshua Bell                         2:5075/128        24 авг 23 18:52:06
 К    : I am Rob                                              24 авг 23 04:54:01
 Тема : Re: SmartPort Query
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<9dd32c50-4e31-4787-be7a-12cd9da65e76n@googlegroups.com> 0e0d4672
@REPLY:
<940b6ab4-d361-41f2-81ee-ec38631aef40n@googlegroups.com> 0782ef16
@REPLYADDR Joshua Bell <inexorabletash@gmail.com>
@REPLYTO 2:5075/128 Joshua Bell
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
<f90f1538-dd1f-4bfe-a035-d71f21fc971an@googlegroups.com> <d14dea63-f9f0-4133-ba9c-7bff0b803b23n@googlegroups.com>
<617c3da6-38d8-4656-b06e-9bbea05d6706n@googlegroups.com> <940b6ab4-d361-41f2-81ee-ec38631aef40n@googlegroups.com>
@RFC-Message-ID:
<9dd32c50-4e31-4787-be7a-12cd9da65e76n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
On Thursday, August 24, 2023 at 6:58:34 AM UTC-7, I am Rob wrote:
> > > Hi Rob, 
> > > Smartport deals with devices, not slots/drives. 
> > > Is your mapping done once ProDOS 8 is loaded? 
> > > Antoine 
 > > Right. But even the Smartport would need to use the
softswitches to access a slot card. Which should mean there has to be a
mapping of some kind to know which slot a device is in. I have come
across an instance where it would be a benefit to be able to translate
between the two. 
> > 
 > > As far as I know the mapping has nothing to do with Prodos
8. If you follow the routine at $C70D (entry to the Smartport), it
ends in COP 82. This co-processor routine must have a routine to map a
slot to a device number.
 > I should add that the SmartPort device number does not match
Prodos device table at $BF30.

 ProDOS-8 2.0.x (and unofficial 2.4 and FX) construct an internal
mapping from ProDOS unit number (the things listed in DEVLST at $BF30,
which encode the mapped slot/drive, which is exposed via BASIC.SYSTEM but
also needed for the DEVADR table at $BF10) to the SmartPort device
number. This mapping is not exposed externally, and the location in memory
changes from version to version of ProDOS. When you make an MLI call with
a unit number ProDOS will consult the table to figure out what device
number to use for the SmartPort call. In the ProDOS sources the table is
spunit (and also spvectlo/spvecthi).

 ProDOS 1.2...1.9 mirror a 3rd and 4th device in S5 to S2,D1/2
only, and leave DEVADR entries pointing at $C5xx. There`s no need for a
table, just hardcoded logic.

 That`s the only Slot/Drive to SmartPort device number mapping I`m
aware of, but I`m still a n00b. Apologies if this is off topic.
--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх