X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp-cpm3.git/blobdiff_plain/b625464d4bbdadce5b262e6b1b8d5eca16fa227d..4fc939ea71f1c4979525f2cb059da81a5e3fb07c:/cbios/sdio.180 diff --git a/cbios/sdio.180 b/cbios/sdio.180 index c706aa6..0d29645 100644 --- a/cbios/sdio.180 +++ b/cbios/sdio.180 @@ -10,6 +10,7 @@ ; Variables containing parameters passed by BDOS + extrn @xdph extrn @adrv,@rdrv extrn @trk,@sect,@cnt extrn @dma,@dbnk @@ -145,6 +146,9 @@ sd$init7: ; be logged into for the purpose of density determination. ; It may adjust the parameters contained in the disk ; parameter header pointed at by +; +; absolute drive number in @adrv (8 bits) +0 +; relative drive number in @rdrv (8 bits) +1 sd$login: xor a @@ -176,8 +180,11 @@ sd$login: ld b,recv_msg_len ; max receive message len call msg.recv -; ld a,(recv_msg_rc) -; or a + ld a,(recv_msg_rc) + or a + ret z + ld hl,0 + ld (@xdph),hl ret ;