]> git.sur5r.net Git - cc65/commit
Fixed bugs in the geos-cbm DIO sector-number converter functions.
authorGreg King <gregdk@users.sf.net>
Thu, 27 Aug 2015 08:02:26 +0000 (04:02 -0400)
committerGreg King <gregdk@users.sf.net>
Fri, 23 Feb 2018 21:12:12 +0000 (16:12 -0500)
commit6fd56bf9b6b594a722bc508b6dfc7c1f21fdc3b4
treefda352a6385f17fb94c70151a5c6e28745d50ec9
parent8476360e9f5f3737eb740e8faffdeece2e4847aa
Fixed bugs in the geos-cbm DIO sector-number converter functions.

* The 16-bit comparison code actually didn't compare the high byte.
* This implementation supports only the 1541, 1571, and 1581; but, it didn't exclude the other drive types that GEOS supports.
* Two error code numbers were swapped.
* A 1571 converter didn't catch sector numbers that are too high.
* A 1581 converter didn't catch sector numbers that are too high.
libsrc/geos-cbm/disk/dio_cts.s
libsrc/geos-cbm/disk/dio_stc.s