| |
Richard
Registered: Dec 2001 Posts: 621 |
1581 loader problem
I'm having trouble with the 1581 loading routine. Please can you tell me where I have gone wrong? Please can anyone help? What seems to happen is the 1581 fails to respond after the search for a filename.
Code:
lda #$08
device ldx #$08
tay
jsr $ffba
lda #$10
ldx #<filename
ldy #>filename
jsr $ffbd
lda #$00
jsr $ffd5
lda #$37
sta $01
cli
jsr $a659
jmp $a7ae
rts
This works with a 1541 drive, but why does it not work properly with 1581?
|
|
| |
6R6
Registered: Feb 2002 Posts: 245 |
I cant see any troubles in your routine.
Are you sure you have the correct filename ?
Are you sure the device number is correct ?
Insert a rts instead of the cli and try read the error channel...
|
| |
Devia
Registered: Oct 2004 Posts: 401 |
I just tested your routine and it works.
However! ;-) ...
I could not get it working before I removed my RetroReplay Cartridge (with The Final Replay v0.6 ROM).
I made a simple oneline basic proggy and saved it using SAVE"TEST",9 but when I tried loading it back from the 1581 (on dev #9) it loaded from $0801 to $0801 :(
It wasn't until I removed the cartridge it started to behave properly and then your little code started working too.
Let's see if I find some time tomorrow to figure out exactly what the hell is going on here.. too tired to think more about it right now ;-)
|
| |
Scout
Registered: Dec 2002 Posts: 1570 |
Quote:I could not get it working before I removed my RetroReplay Cartridge (with The Final Replay v0.6 ROM).
Yes, I have the same problem with TFR and the 1581.
Count Zero's RR Rom works fine in combination with the 1581 btw. |
| |
Richard
Registered: Dec 2001 Posts: 621 |
Erm, don't worry. I managed to get it to work :) |