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

Re: Problems with machine code



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.