Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Sending Floppy Init doesnt work as expected
2014-01-14 20:04
lA-sTYLe

Registered: Sep 2003
Posts: 63
Sending Floppy Init doesnt work as expected

I try to send "UI" with Doscommand and afterwards read the errorchannel to get to Rom and Versionstring from a Drive.

Like in Jiffydos or Retroreplay with

@ui

@

Reading the errorchannel works fine but sennding the "UI" with the following code (just the send drivecommand) doesnt respond as expected.

!to "doscmd.prg",cbm

*=$1000



lda#$0f ;open 15,8,15
ldx#$08
ldy#$0f
jsr $ffba
lda #$02
ldx#<(init)
ldy#>(init)
jsr$ffbd
jsr$ffc0
lda#$0f ;close 15
jsr$ffc3
rts

init !byte 85,73


I know about the Drivedetection routine available at codebase but this one doesnt work on Drives like xd2031, thats the Reason why i want to get the Drivestring.

Is there a better solution ?
2014-01-14 20:47
Flavioweb

Registered: Nov 2011
Posts: 463
init !byte 85,73

should be

init !byte $55, $49

Edit:
I had not noticed that your values are decimal... Doh!

BTW, your code works on Vice with 1541 and TDE.
Where don't works for you?
2014-01-14 22:40
soci

Registered: Sep 2003
Posts: 480
When you close the error channel it's just telling you that closing of all channels went fine without an error "00, OK...". It would be a good idea to read the result first.
2014-01-15 06:54
lA-sTYLe

Registered: Sep 2003
Posts: 63
thx soci, that was the correct hint, reading the errorchannel before closing does exactly what i was looking for.just incase someone might need that sometime....

lda#$0f
ldx#$08
ldy#$0f
jsr $ffba
lda #$02
ldx#<(init)
ldy#>(init)
jsr$ffbd
jsr$ffc0
LDX #$0F
JSR $FFC6
.loop JSR $FFB7
BNE .eof
JSR $FFCF
JSR $FFD2
JMP .loop
.eof lda#$0f
jsr$ffc3
rts

init !byte 85,73 ;($55, $49)
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
El Jefe/Slackers^sidD
csabanw
Metal Maniac/Dual Crew
algorithm
Dan
E$G/HF ⭐ 7
MWR/Visdom
Brataccas/HF
Morpheus/IPC+C64.COM
Icon/TRIAD
Guests online: 108
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.