Commodore 128 Alive!

Commodore 128 => Herdware => Topic started by: MIRKOSOFT on September 02, 2010, 05:22 PM

Title: How to check "NOT PRESENT" drive using RAMLink? Normal method hangs!
Post by: MIRKOSOFT on September 02, 2010, 05:22 PM
Hi!

Maybe stupid Q in title, but my program which when is RAMLink disabled checks DEV. NOT PRESENT drives ok.

When I enable RAMLink and my program start subroutine scan.drives (8-30) if happens that device is not connected, e.g.
8=Jiffy1581
9=nothing
10=1571CR
11=RAMLink
14=IEC-ATA
15-17 + 30 =64HDD

tests drive #9 computer hangs... drives are checked by "UI:" command to get DOS.
Why RAMLink (and I think also other CMD-HW) hangs computer?
I tried to skip subroutine scan.drives, all was ok until I wanted change drive:
DOSes were correctly recognized (at #9 I swap RAMLink) until #11 - not connected - then hangs ??? ?
Or better - what a problem has RAMLink with UI: on not connected device? ???

Many many thanks for every reply.

Miro
Title: Re: How to check "NOT PRESENT" drive using RAMLink? Solved!
Post by: MIRKOSOFT on September 02, 2010, 09:50 PM
I checked devices for NOT PRESENT by open file and close without name.

Miro
Title: Re: How to check "NOT PRESENT" drive using RAMLink? Normal method hangs!
Post by: wte on September 05, 2010, 06:31 AM
1. Please check. Maybe UI resets the RL on device #9 back to the default value #11 ?
2. Post the code of your "device tester".

Regards WTE
Title: Re: How to check "NOT PRESENT" drive using RAMLink? Normal method hangs!
Post by: MIRKOSOFT on September 05, 2010, 07:03 AM

lda #15
ldx device
ldy #15
jsr setlfs
jsr open
lda #15
jsr close
jsr clrch
lda $90
cmp #$80
bne ok
jmp notfound




Miro
Title: Re: How to check "NOT PRESENT" drive using RAMLink? Normal method hangs!
Post by: wte on September 07, 2010, 06:07 AM
SA 15 maybe not a good idea (closes all files).
Try it without SA (SA=$FF); as I remember correctly no SA could help.
Title: Re: How to check "NOT PRESENT" drive using RAMLink? I solved it...
Post by: MIRKOSOFT on September 07, 2010, 06:25 AM
I used open file without name and if BCS then dev not present - easy and no problem...


But also thanks.


Miro
EhPortal 1.34 © 2025, WebDev