[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with machine code
- Subject: Re: Problems with machine code
- From: russotto@grace.speakeasy.net (Matthew Russotto)
- Date: Sat, 06 Nov 2004 11:09:11 -0600
- Newsgroups: comp.sys.apple2
- Organization: DiS(L)organized
- References: <O_Yid.40327$T_.34113@bignews4.bellsouth.net>
- Xref: g2news1.google.com comp.sys.apple2:5490
In article <O_Yid.40327$T_.34113@bignews4.bellsouth.net>,
Jayson Smith <nospamratguyspambegone@nospamplease.bellsouth.ihatespam.net> wrote:
>
>The problem with this routine is that it only reads fifteen sectors, not
>sixteen. The BNE aparently is falling through when X reaches 1, not 0. Any
>thoughts on how to solve this, or a better way to write such a routine?
No, it falls through when X reaches zero; you're decrementing before
you test. You probably want BPL DISK instead of BNE DISK.