How to check "NOT PRESENT" drive using RAMLink? Normal method hangs!

Started by MIRKOSOFT, September 02, 2010, 05:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

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
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

MIRKOSOFT

I checked devices for NOT PRESENT by open file and close without name.

Miro
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

wte

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

MIRKOSOFT


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
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

wte

SA 15 maybe not a good idea (closes all files).
Try it without SA (SA=$FF); as I remember correctly no SA could help.

MIRKOSOFT

I used open file without name and if BCS then dev not present - easy and no problem...


But also thanks.


Miro
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk