[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Where does the "16 SECTOR" message come from?
Michael J. Mahon <mjmahon@aol.com> wrote:
> David Empson wrote:
> > Michael J. Mahon <mjmahon@aol.com> wrote:
> >
> >
> >>David Empson wrote:
> >>
> >>>Oh well, I'm sure someone will find a use for my "copy the C8 area" code
> >>>snippet, and it will be in the archives. :-)
> >>
> >>Thanks, David--now it's in my archives, too. ;-)
> >
> >
> > It would be handy if someone can test it and make sure I didn't make any
> > typos in the machine code translation.
>
> Your hand-assembly is perfect, but I can't test it effectively
> in an emulator...
>
> When I tried dumping slot 3 ROM in AppleWin, it hung.
Oops. Major bug in the original code - I was testing the wrong zero page
variable, so it was copying half of the address space to the other half,
overwriting DOS or ProDOS and the I/O space in the process. (Memory from
$C800 through to $4FFF, wrapping around, was copied to $4800 through
$CFFF.)
Please ignore the original and see my revised post elsewhere in this
thread. Quick patch: replace the LDA $09 near the end with LDA $07.
--
David Empson
dempson@actrix.gen.nz