changeset 3036:42861a1dd59e

Low level driver update to CoCoSDC provided by Darren.
author David Ladd <drencor-xeen@users.sf.net>
date Fri, 09 Jan 2015 12:32:56 -0600
parents 1cef81d100ce
children ce135f896796
files level1/modules/llcocosdc.asm
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/level1/modules/llcocosdc.asm	Tue Jan 06 23:19:01 2015 -0600
+++ b/level1/modules/llcocosdc.asm	Fri Jan 09 12:32:56 2015 -0600
@@ -19,7 +19,10 @@
 * when a 6309 CPU is present. Supports the SS.DSize GetStat function
 * to query controller for the disk size.
 *
-
+*          2015/01/08  Darren Atkinson
+* Fixed bug in getSize which caused boot to fail when controller was
+* installed in slot 2, 3 or 4 of a Multi-Pak Interface.
+*
                NAM       llcocosdc
                TTL       CoCo SDC Low-level driver
 
@@ -118,6 +121,7 @@
 getSize        lda       #CMDEX             primary command code
                ora       PD.DRV,y           combine drive num with command
                ldb       #'Q                "Query Size" sub-command
+               leay      ,u                 point Y at device mem
                ldu       #$FFFF             I/O buffer = none
                pshs      x                  save frame ptr
                bsr       CommSDC            send query to controller