[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with machine code



Bender MX <email@addr.ess> wrote:
> Simply add 1 to your initial X and you'll read all the sectors and exit the
> routine cleanly.
> 
> So instead of LDX #$0F, try LDX #$10 and see where the day takes you!

I think that will read sectors 16 through 1 rather than 15 through 0.
Which won't work.

I would suggest replacing the BNE (branch if not zero) with a BPL (branch
if positive).

-- 
Send mail to fadden@fadden.com (Andy McFadden) - http://www.fadden.com/
CD-Recordable FAQ - http://www.cdrfaq.org/
CiderPress Apple II archive utility for Windows - http://www.faddensoft.com/
Fight Internet Spam - http://spam.abuse.net/spam/ & http://spamcop.net/