From: Michael McIntosh (cc65_at_lifepod.com)
Date: 2003-02-12 21:00:36
Excellent. I used the first suggestion, although the 2nd suggestion works like a charm. When you call the kernal LOAD routine and encounter an error, the .C register is set and the .A register contains the error code. To print out the disk error message and return to basic, add the following code to a routine somewhere after the kernal LOAD call before you change the value in the .A register: tax ; transfer kernal error code to .x jmp ($0300) ; jump to basic warm start This method also handles messages for "DEVICE NOT PRESENT" and other possible disk errors. Thanks for the help Uz... :) - Michael +++ Codito, Ergo Sum +++ On Wed, 12 Feb 2003, Ullrich von Bassewitz wrote: > > Hi! > > On Tue, Feb 11, 2003 at 07:43:41PM -0500, Michael McIntosh wrote: > > Thanks for the suggestion of $F704. I was unable to use $F704 to resolve > > the problem regardless of the bit configuration in $9B (modified by the > > setmsg kernal routine). I've spent two days trying to resolve the issue, > > so I'll simply include a BRK instruction in the event of a file not being > > found. It isn't that important of an issue. > > Two more suggestions: > > ldx #$03 > jmp ($300) ; Prints "FILE NOT FOUND", reenters BASIC > > and > > jmp $E19C ; Prints "LOAD ERROR", reenters BASIC > > Please note that in both cases, the $300 vector may have been modified by your > autoloader, so you have to check that. > > > Could anyone direct me to a forum where C64 specific programming questions > > would be on topic? > > As far as I know, the CBM Hackers mailing list is more appropriate for > questions like these (the list is not C64 specific). I'm subscribed to that > list, and there are a lot of interesting discussions going on, but I cannot > remember how I subscribed to that list, so unfortunately I cannot tell:-) You > may want to use Google to search for the subscription address and policy. > > Regards > > > Uz > > > -- > Ullrich von Bassewitz uz_at_musoftware.de > ---------------------------------------------------------------------- > To unsubscribe from the list send mail to majordomo_at_musoftware.de with > the string "unsubscribe cc65" in the body(!) of the mail. > ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-02-12 21:00:41 CET