]> cloudbase.mooo.com Git - z180-stamp-cpm3.git/commitdiff
disable mulit sector i/0 because it triggers a bug hexrel-6
authorLeo C <erbl259-lmu@yahoo.de>
Thu, 21 May 2015 15:35:52 +0000 (17:35 +0200)
committerLeo C <erbl259-lmu@yahoo.de>
Thu, 21 May 2015 15:35:52 +0000 (17:35 +0200)
cbios/bioskrnl.180
cbios/gencpm.dat
cbios/sdio.180

index 93d556da10407dad903d4852a74558ac6f78f1dd..6ac3726832294cf0f17e3fa0d08b9f577612bd25 100644 (file)
@@ -26,10 +26,10 @@ bell        equ     7
 ctlQ   equ     'Q'-'@'\r
 ctlS   equ     'S'-'@'\r
 \r
-ccp    equ     0100h                   ; Console Command Processor gets loaded\r
-                                       ; into the TPA\r
+ccp    equ     0100h           ; Console Command Processor gets loaded\r
+                               ; into the TPA\r
 \r
-       cseg                            ; GENCPM puts CSEG stuff in common memory\r
+       cseg                    ; GENCPM puts CSEG stuff in common memory\r
 \r
 \r
     ; variables in system data page\r
@@ -40,7 +40,7 @@ ccp   equ     0100h                   ; Console Command Processor gets loaded
 \r
     ; initialization\r
 \r
-       extrn hwinit,?init                      ; general initialization and signon\r
+       extrn hwinit,?init              ; general initialization and signon\r
        extrn ?ldccp,?rlccp             ; load & reload CCP for BOOT & WBOOT\r
 \r
     ; user defined character I/O routines\r
@@ -57,13 +57,13 @@ ccp equ     0100h                   ; Console Command Processor gets loaded
 \r
     ; memory control\r
 \r
-       public @cbnk                    ; current bank\r
-       extrn ?xmove,?move              ; select move bank, and block move\r
-       extrn ?bank                     ; select CPU bank\r
+       public @cbnk            ; current bank\r
+       extrn ?xmove,?move      ; select move bank, and block move\r
+       extrn ?bank             ; select CPU bank\r
 \r
     ; clock support\r
 \r
-       extrn ?time                     ; signal time operation\r
+       extrn ?time             ; signal time operation\r
 \r
     ; general utility routines\r
 \r
@@ -72,7 +72,7 @@ ccp   equ     0100h                   ; Console Command Processor gets loaded
        public pmsg.in          ; print message inline\r
        public phex4,phex2      ; print 4 digit hex (HL), or 2 digit hex (A)\r
 \r
-       include modebaud.inc            ; define mode bits\r
+       include modebaud.inc    ; define mode bits\r
 \r
 \r
     ; External names for BIOS entry points\r
@@ -88,45 +88,45 @@ ccp equ     0100h                   ; Console Command Processor gets loaded
 \r
     ; BIOS Jump vector.\r
 \r
-               ; All BIOS routines are invoked by calling these\r
-               ;       entry points.\r
-\r
-?boot: jp      boot    ; initial entry on cold start\r
-?wboot:        jp      wboot   ; reentry on program exit, warm start\r
-\r
-?const:        jp      const   ; return console input status\r
-?conin:        jp      conin   ; return console input character\r
-?cono: jp      conout  ; send console output character\r
-?list: jp      list    ; send list output character\r
-?auxo: jp      auxout  ; send auxiliary output character\r
-?auxi: jp      auxin   ; return auxiliary input character\r
-\r
-?home: jp      home    ; set disks to logical home\r
-?sldsk:        jp      seldsk  ; select disk drive, return disk parameter info\r
-?sttrk:        jp      settrk  ; set disk track\r
-?stsec:        jp      setsec  ; set disk sector\r
-?stdma:        jp      setdma  ; set disk I/O memory address\r
-?read: jp      read    ; read physical block(s)\r
-?write:        jp      write   ; write physical block(s)\r
-\r
-?lists:        jp      listst  ; return list device status\r
-?sctrn:        jp      sectrn  ; translate logical to physical sector\r
-\r
-?conos:        jp      conost  ; return console output status\r
-?auxis:        jp      auxist  ; return aux input status\r
-?auxos:        jp      auxost  ; return aux output status\r
-?dvtbl:        jp      devtbl  ; return address of device def table\r
-?devin:        jp      ?cinit  ; change baud rate of device\r
-\r
-?drtbl:        jp      getdrv  ; return address of disk drive table\r
-?mltio:        jp      multio  ; set multiple record count for disk I/O\r
-?flush:        jp      flush   ; flush BIOS maintained disk caching\r
-\r
-?mov:  jp      ?move   ; block move memory to memory\r
-?tim:  jp      ?time   ; Signal Time and Date operation\r
-?bnksl:        jp      bnksel  ; select bank for code execution and default DMA\r
-?stbnk:        jp      setbnk  ; select different bank for disk I/O DMA operations\r
-?xmov: jp      ?xmove  ; set source and destination banks for one operation\r
+       ; All BIOS routines are invoked by calling these\r
+       ;       entry points.\r
+\r
+?boot: jp      boot            ; initial entry on cold start\r
+?wboot:        jp      wboot           ; reentry on program exit, warm start\r
+\r
+?const:        jp      const           ; return console input status\r
+?conin:        jp      conin           ; return console input character\r
+?cono: jp      conout          ; send console output character\r
+?list: jp      list            ; send list output character\r
+?auxo: jp      auxout          ; send auxiliary output character\r
+?auxi: jp      auxin           ; return auxiliary input character\r
+\r
+?home: jp      home            ; set disks to logical home\r
+?sldsk:        jp      seldsk          ; select disk drive, return disk parameter info\r
+?sttrk:        jp      settrk          ; set disk track\r
+?stsec:        jp      setsec          ; set disk sector\r
+?stdma:        jp      setdma          ; set disk I/O memory address\r
+?read: jp      read            ; read physical block(s)\r
+?write:        jp      write           ; write physical block(s)\r
+\r
+?lists:        jp      listst          ; return list device status\r
+?sctrn:        jp      sectrn          ; translate logical to physical sector\r
+\r
+?conos:        jp      conost          ; return console output status\r
+?auxis:        jp      auxist          ; return aux input status\r
+?auxos:        jp      auxost          ; return aux output status\r
+?dvtbl:        jp      devtbl          ; return address of device def table\r
+?devin:        jp      ?cinit          ; change baud rate of device\r
+\r
+?drtbl:        jp      getdrv          ; return address of disk drive table\r
+?mltio:        jp      multio          ; set multiple record count for disk I/O\r
+?flush:        jp      flush           ; flush BIOS maintained disk caching\r
+\r
+?mov:  jp      ?move           ; block move memory to memory\r
+?tim:  jp      ?time           ; Signal Time and Date operation\r
+?bnksl:        jp      bnksel          ; select bank for code execution and default DMA\r
+?stbnk:        jp      setbnk          ; select different bank for disk I/O DMA operations\r
+?xmov: jp      ?xmove          ; set source and destination banks for one operation\r
 \r
        jp      0               ; reserved for future expansion\r
        jp      0               ; reserved for future expansion\r
@@ -136,14 +136,14 @@ ccp       equ     0100h                   ; Console Command Processor gets loaded
        ; BOOT\r
        ;       Initial entry point for system startup.\r
 \r
-       dseg    ; this part can be banked\r
+       dseg                    ; this part can be banked\r
 \r
 boot:\r
        ld      sp,bs$stack\r
 \r
-       call    hwinit  ; first time hardware initialisation\r
+       call    hwinit          ; first time hardware initialisation\r
 \r
-       ld      c,15    ; initialize all 16 character devices\r
+       ld      c,15            ; initialize all 16 character devices\r
 c$init$loop:\r
        push    bc\r
        call    ?cinit\r
@@ -151,54 +151,54 @@ c$init$loop:
        dec     c\r
        jp      p,c$init$loop\r
 \r
-       call    ?init   ; perform any additional system initialization\r
-                       ; and print signon message\r
+       call    ?init           ; perform any additional system initialization\r
+                               ; and print signon message\r
 \r
        ld      bc,16*256+0\r
-       ld      hl,@dtbl                ; init all 16 logical disk drives\r
+       ld      hl,@dtbl        ; init all 16 logical disk drives\r
 d$init$loop:\r
-       push    bc                      ; save remaining count and abs drive\r
+       push    bc              ; save remaining count and abs drive\r
        ld      e,(hl)\r
        inc     hl\r
        ld      d,(hl)\r
-       inc     hl                      ; grab @drv entry\r
+       inc     hl              ; grab @drv entry\r
        ld      a,e\r
        or      d\r
-       jr      z,d$init$next           ; if null, no drive\r
-       push    hl                      ; save @drv pointer\r
+       jr      z,d$init$next   ; if null, no drive\r
+       push    hl              ; save @drv pointer\r
    if 0\r
-       ex      de,hl                   ; XDPH address in <HL>\r
+       ex      de,hl           ; XDPH address in <HL>\r
        dec     hl\r
        dec     hl\r
-       ld      b,(hl)                  ; get relative drive code\r
-       ld      (@ADRV),bc              ; save absolute and relative drive code\r
-       dec     hl                      ; point to init pointer\r
+       ld      b,(hl)          ; get relative drive code\r
+       ld      (@ADRV),bc      ; save absolute and relative drive code\r
+       dec     hl              ; point to init pointer\r
        ld      d,(hl)\r
        dec     hl\r
-       ld      e,(hl)                  ; get init pointer\r
+       ld      e,(hl)          ; get init pointer\r
        ex      de,hl\r
-       call    ipchl                   ; call init routine\r
+       call    ipchl           ; call init routine\r
    else\r
        push    de\r
        pop     ix\r
        ld      b,(ix-2)\r
-       ld      (@ADRV),bc              ; save absolute and relative drive code\r
+       ld      (@ADRV),bc      ; save absolute and relative drive code\r
        ld      l,(ix-4)\r
-       ld      h,(ix-3)                ; get init pointer\r
-       call    ipchl                   ; call init routine\r
+       ld      h,(ix-3)        ; get init pointer\r
+       call    ipchl           ; call init routine\r
    endif\r
-       pop     hl                      ; recover @drv pointer\r
+       pop     hl              ; recover @drv pointer\r
 d$init$next:\r
-       pop     bc                      ; recover counter and drive #\r
+       pop     bc              ; recover counter and drive #\r
        inc     c\r
-       djnz    d$init$loop             ; and loop for each drive\r
+       djnz    d$init$loop     ; and loop for each drive\r
        jp      boot$1\r
 \r
        cseg    ; following in resident memory\r
 \r
 boot$1:\r
        call    set$jumps\r
-       call    ?ldccp                  ; fetch CCP for first time\r
+       call    ?ldccp          ; fetch CCP for first time\r
        jp      ccp\r
 \r
 \r
@@ -207,9 +207,9 @@ boot$1:
 \r
 wboot:\r
        ld      sp,bs$stack\r
-       call    set$jumps               ; initialize page zero\r
-       call    ?rlccp                  ; reload CCP\r
-       jp      ccp                     ; then reset jmp vectors and exit to ccp\r
+       call    set$jumps       ; initialize page zero\r
+       call    ?rlccp          ; reload CCP\r
+       jp      ccp             ; then reset jmp vectors and exit to ccp\r
 \r
 \r
 set$jumps:\r
@@ -288,14 +288,14 @@ not$out$ready:
        or      a\r
        jp      z,not$out$ready\r
        pop     bc\r
-       push    bc      ; restore and resave the character and device\r
-       call    ?co     ; if device selected, print it\r
+       push    bc              ; restore and resave the character and device\r
+       call    ?co             ; if device selected, print it\r
        pop     bc              ; recover count and character\r
        pop     hl              ; recover the rest of the vector\r
 not$out$device:\r
        inc     b               ; next device number\r
        ld      a,h\r
-       or      l       ; see if any devices left\r
+       or      l               ; see if any devices left\r
        jr      nz,co$next      ; and go find them...\r
        ret\r
 \r
@@ -334,7 +334,7 @@ cos$next:
        add     hl,hl           ; check next bit\r
        push    hl              ; save the vector\r
        push    bc              ; save the count\r
-       ld      a,0FFh  ; assume device ready\r
+       ld      a,0FFh          ; assume device ready\r
        call    c,coster        ; check status for this device\r
        pop     bc              ; recover count\r
        pop     hl              ; recover bit vector\r
@@ -342,30 +342,31 @@ cos$next:
        ret     z                       ; if any not ready, return false\r
        inc     b               ; drop device number\r
        ld      a,h\r
-       or      l       ; see if any more selected devices\r
+       or      l               ; see if any more selected devices\r
        jr      nz,cos$next\r
-       or      0FFh    ; all selected were ready, return true\r
+       or      0FFh            ; all selected were ready, return true\r
        ret\r
 \r
-coster:                ; check for output device ready, including optional\r
-               ;       xon/xoff support\r
+       ; check for output device ready, including optional\r
+       ;       xon/xoff support\r
+coster:\r
        ld      l,b\r
-       ld      h,0     ; make device code 16 bits\r
-       push    hl                      ; save it in stack\r
+       ld      h,0             ; make device code 16 bits\r
+       push    hl              ; save it in stack\r
        add     hl,hl\r
        add     hl,hl\r
-       add     hl,hl   ; create offset into device characteristics tbl\r
+       add     hl,hl           ; create offset into device characteristics tbl\r
        ld      de,@ctbl+6\r
-       add     hl,de   ; make address of mode byte\r
+       add     hl,de           ; make address of mode byte\r
        ld      a,(hl)\r
        and     mb$xon$xoff\r
-       pop     hl                      ; recover console number in <HL>\r
+       pop     hl              ; recover console number in <HL>\r
        jp      z,?cost         ; not a xon device, go get output status direct\r
        ld      de,xofflist\r
-       add     hl,de   ; make pointer to proper xon/xoff flag\r
+       add     hl,de           ; make pointer to proper xon/xoff flag\r
        call    cist1           ; see if this keyboard has character\r
        ld      a,(hl)\r
-       call    nz,ci1  ; get flag or read key if any\r
+       call    nz,ci1          ; get flag or read key if any\r
        cp      ctlq\r
        jr      nz,not$q        ; if its a ctl-Q,\r
        ld      a,0FFh          ;       set the flag ready\r
@@ -374,12 +375,12 @@ not$q:
        jr      nz,not$s        ; if its a ctl-S,\r
        ld      a,00h           ;       clear the flag\r
 not$s:\r
-       ld      (hl),a                  ; save the flag\r
+       ld      (hl),a          ; save the flag\r
        call    cost1           ; get the actual output status,\r
-       and     (hl)                    ; and mask with ctl-Q/ctl-S flag\r
+       and     (hl)            ; and mask with ctl-Q/ctl-S flag\r
        ret                     ; return this as the status\r
 \r
-cist1:                 ; get input status with <BC> and <HL> saved\r
+cist1:                         ; get input status with <BC> and <HL> saved\r
        push    bc\r
        push    hl\r
        call    ?cist\r
@@ -388,7 +389,7 @@ cist1:                      ; get input status with <BC> and <HL> saved
        or      a\r
        ret\r
 \r
-cost1:                 ; get output status, saving <BC> & <HL>\r
+cost1:                         ; get output status, saving <BC> & <HL>\r
        push    bc\r
        push    hl\r
        call    ?cost\r
@@ -397,7 +398,7 @@ cost1:                      ; get output status, saving <BC> & <HL>
        or      a\r
        ret\r
 \r
-ci1:                   ; get input, saving <BC> & <HL>\r
+ci1:                           ; get input, saving <BC> & <HL>\r
        push    bc\r
        push    hl\r
        call    ?ci\r
@@ -434,7 +435,7 @@ cis$next:
        ret     nz              ; if any ready, return true\r
        inc     b               ; next device number\r
        ld      a,h\r
-       or      l       ; see if any more selected devices\r
+       or      l               ; see if any more selected devices\r
        jr      nz,cis$next\r
        xor     a               ; all selected were not ready, return false\r
        ret\r
@@ -602,19 +603,19 @@ table10:
 \r
 ?pderr:\r
        ld      hl,drive$msg\r
-       call    ?pmsg                   ; error header\r
+       call    ?pmsg           ; error header\r
        ld      a,(@adrv)\r
        add     a,'A'\r
        ld      c,a\r
-       call    ?cono   ; drive code\r
+       call    ?cono           ; drive code\r
        ld      hl,track$msg\r
-       call    ?pmsg                   ; track header\r
+       call    ?pmsg           ; track header\r
        ld      hl,(@trk)\r
-       call    ?pdec                           ; track number\r
+       call    ?pdec           ; track number\r
        ld      hl,sector$msg\r
-       call    ?pmsg                   ; sector header\r
+       call    ?pmsg           ; sector header\r
        ld      hl,(@sect)\r
-       call    ?pdec                           ; sector number\r
+       call    ?pdec           ; sector number\r
        ret\r
 \r
 \r
@@ -622,9 +623,9 @@ table10:
        ;       Bank Select.  Select CPU bank for further execution.\r
 \r
 bnksel:\r
-       ld      (@cbnk),a               ; remember current bank\r
-       jp      ?bank                   ; and go exit through users\r
-                                       ; physical bank select routine\r
+       ld      (@cbnk),a       ; remember current bank\r
+       jp      ?bank           ; and go exit through users\r
+                               ; physical bank select routine\r
 \r
 \r
 xofflist:\r
@@ -648,34 +649,34 @@ xofflist:
        ;               in <HL>\r
 \r
 seldsk:\r
-       ld      a,c                     ; save drive select code\r
+       ld      a,c             ; save drive select code\r
        ld      (@adrv),a\r
-       ld      b,0                     ; create index from drive code\r
+       ld      b,0             ; create index from drive code\r
        ld      hl,@dtbl\r
-       add     hl,bc                   ; get pointer to dispatch table\r
+       add     hl,bc           ; get pointer to dispatch table\r
        add     hl,bc\r
        ld      a,(hl)\r
        inc     hl\r
        ld      h,(hl)\r
-       ld      l,a                     ; point at disk descriptor\r
-       ld      (@xdph),hl              ; save descriptor pointer\r
+       ld      l,a             ; point at disk descriptor\r
+       ld      (@xdph),hl      ; save descriptor pointer\r
        or      h\r
-       ret     z                       ; if no entry in table, no disk\r
+       ret     z               ; if no entry in table, no disk\r
 \r
-       ld      a,e                     ; examine login bit\r
+       ld      a,e             ; examine login bit\r
        and     1\r
        ret     nz\r
 \r
        push    ix\r
        ld      ix,(@xdph)\r
        ld      a,(ix-2)\r
-       ld      (@RDRV),a               ; get relative drive\r
-       ld      l,(ix-6)                ; get address of LOGIN routine\r
+       ld      (@RDRV),a       ; get relative drive\r
+       ld      l,(ix-6)        ; get address of LOGIN routine\r
        ld      h,(ix-5)\r
        ex      (sp),ix\r
        pop     de\r
-       call    ipchl                   ; call LOGIN\r
-       ld      hl,(@xdph)              ; recover DPH pointer\r
+       call    ipchl           ; call LOGIN\r
+       ld      hl,(@xdph)      ; recover DPH pointer\r
        ret\r
 \r
 \r
@@ -751,8 +752,8 @@ sectrn:
        ;               extended disk parameter header (XDPH).\r
 \r
 read:\r
-       ld      ix,(@xdph)              ; get drive descriptor pointer\r
-       ld      l,(ix-8)                ; get read routine entry\r
+       ld      ix,(@xdph)      ; get drive descriptor pointer\r
+       ld      l,(ix-8)        ; get read routine entry\r
        ld      h,(ix-7)\r
        jp      (hl)\r
 \r
@@ -763,8 +764,8 @@ read:
        ;               extended disk parameter header (XDPH).\r
 \r
 write:\r
-       ld      ix,(@xdph)              ; get drive descriptor pointer\r
-       ld      l,(ix-10)               ; get write routine entry\r
+       ld      ix,(@xdph)      ; get drive descriptor pointer\r
+       ld      l,(ix-10)       ; get write routine entry\r
        ld      h,(ix- 9)\r
        jp      (hl)\r
 \r
@@ -784,7 +785,7 @@ multio:
 \r
 flush:\r
        xor     a\r
-       ret             ; return with no error\r
+       ret                     ; return with no error\r
 \r
 \r
 \r
index 00874a9f77123c2cf7fe3766943f444e912fbc12..3a0c020c18cfece3ddc6d3cdb46164477d9b6c1d 100644 (file)
@@ -9,9 +9,9 @@ BNKSWT   = Y
 COMBAS   = C0\r
 LERROR   = Y\r
 NUMSEGS  = 03\r
-MEMSEG00 = 50,32,00\r
+MEMSEG00 = 50,30,00\r
 MEMSEG01 = 10,B0,02\r
-MEMSEG02 = 00,C0,03\r
+MEMSEG02 = 01,BF,03\r
 MEMSEG03 = 00,C0,04\r
 MEMSEG04 = 00,C0,05\r
 MEMSEG05 = 00,C0,06\r
index 2c4823d82814960af64bc3b0bfb20583d24eef9d..78a8579699eb2df36148d9f49ad3faefa83ed9bc 100644 (file)
@@ -173,26 +173,27 @@ sd$write:
        ld      de,write$msg    ; point at " Write "\r
        ld      c,2\r
 rw$common:\r
-       ld      hl,residual     ; remainng sectors from last multi io?\r
-       ld      a,(hl)\r
-       sub     a,1\r
-       jr      c,rwc_new_sectors\r
 \r
-       ld      (hl),a\r
-       xor     a\r
-       ret\r
+;      ld      hl,residual     ; remainng sectors from last multi io?\r
+;      ld      a,(hl)\r
+;      sub     a,1\r
+;      jr      c,rwc_new_sectors\r
+;\r
+;      ld      (hl),a\r
+;      xor     a\r
+;      ret\r
 \r
 rwc_new_sectors:\r
        ld      b,1             ; assume 1 sector to transfer\r
-       ld      a,(@cnt)\r
-       or      a\r
-       jr      z,rwc_doit\r
-\r
-       ld      b,a             ; number of sectors to transfer\r
-       dec     a               ; save remaining\r
-       ld      (hl),a\r
-       xor     a               ; reset multi sector count\r
-       ld      (@cnt),a\r
+;      ld      a,(@cnt)\r
+;      or      a\r
+;      jr      z,rwc_doit\r
+;\r
+;      ld      b,a             ; number of sectors to transfer\r
+;      dec     a               ; save remaining\r
+;      ld      (hl),a\r
+;      xor     a               ; reset multi sector count\r
+;      ld      (@cnt),a\r
 \r
 ; compute pysical transfer address\r
 ;     prepare message\r
@@ -208,7 +209,7 @@ rwc_doit:
        ld      hl,@adrv        ;address of arguments\r
        ld      bc,6\r
        ldir\r
-       ld      (de),a\r
+       ld      (de),a          ;number of sectors\r
        inc     de\r
        push    de\r
        ld      e,(hl)          ;dma address\r