Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I dunno, I dream in Perl sometimes... -- Larry Wall in <8538@jpl-devvax.JPL.NASA.GOV>


devel / comp.os.cpm / cpmtools bug?

SubjectAuthor
* cpmtools bug?dxforth
+* Re: cpmtools bug?rwd...@gmail.com
|`* Re: cpmtools bug?dxforth
| +* Re: cpmtools bug?ldkr...@gmail.com
| |`* Re: cpmtools bug?ldkr...@gmail.com
| | `* Re: cpmtools bug?ldkr...@gmail.com
| |  `- Re: cpmtools bug?ldkr...@gmail.com
| +* Re: cpmtools bug?rwd...@gmail.com
| |`* Re: cpmtools bug?ldkr...@gmail.com
| | +- Re: cpmtools bug?ldkr...@gmail.com
| | `* Re: cpmtools bug?rwd...@gmail.com
| |  `- Re: cpmtools bug?ldkr...@gmail.com
| `* Re: cpmtools bug?dxforth
|  +* Re: cpmtools bug?ldkr...@gmail.com
|  |+* Re: cpmtools bug?ldkr...@gmail.com
|  ||`- Re: cpmtools bug?dxforth
|  |`- Re: cpmtools bug?dxforth
|  `- Re: cpmtools bug?Steven Hirsch
`* Re: cpmtools bug?rwd...@gmail.com
 `* Re: cpmtools bug?dxforth
  `* Re: cpmtools bug?Dennis Boone
   `* Re: cpmtools bug?dxforth
    `* Re: cpmtools bug?ldkr...@gmail.com
     `* Re: cpmtools bug?dxforth
      `* Re: cpmtools bug?dxforth
       +* Re: cpmtools bug?Douglas Miller
       |`- Re: cpmtools bug?Douglas Miller
       `* Re: cpmtools bug?Martin
        `* Re: cpmtools bug?Douglas Miller
         `* Re: cpmtools bug?Douglas Miller
          `* Re: cpmtools bug?ldkr...@gmail.com
           +* Re: cpmtools bug?Douglas Miller
           |`* Re: cpmtools bug?Douglas Miller
           | `* Re: cpmtools bug?ldkr...@gmail.com
           |  `* Re: cpmtools bug?Douglas Miller
           |   `- Re: cpmtools bug?Douglas Miller
           `- Re: cpmtools bug?dxforth

Pages:12
cpmtools bug?

<s752uq$ak4$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2497&group=comp.os.cpm#2497

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: cpmtools bug?
Date: Sat, 8 May 2021 14:10:02 +1000
Organization: Aioe.org NNTP Server
Lines: 13
Message-ID: <s752uq$ak4$1@gioia.aioe.org>
NNTP-Posting-Host: xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
X-Mozilla-News-Host: snews://nntp.aioe.org:563
 by: dxforth - Sat, 8 May 2021 04:10 UTC

I think there may be a bug in cpmtools.

For a disk images where DSM = 255 (total disk blocks = 256
e.g. YAZE 512K) cpmtools appears to be reading directory block
numbers as 16-bit values rather than 8-bits. This results in
an 'Attempting to access block beyond end of disk' error.

I'm using this version of cpmtools:

http://www.cpm8680.com/cpmtools/

though a 2008 binary I had displayed the same problem

Re: cpmtools bug?

<85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2498&group=comp.os.cpm#2498

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:1309:: with SMTP id v9mr14692287qtk.133.1620493836237;
Sat, 08 May 2021 10:10:36 -0700 (PDT)
X-Received: by 2002:a9d:67cf:: with SMTP id c15mr13289637otn.285.1620493835846;
Sat, 08 May 2021 10:10:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 8 May 2021 10:10:35 -0700 (PDT)
In-Reply-To: <s752uq$ak4$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c6:e20b:ce00:b9f4:1f05:f36e:27a7;
posting-account=QRaRpQoAAAAAa6T9BMU2_8duN2L8AmC_
NNTP-Posting-Host: 2a00:23c6:e20b:ce00:b9f4:1f05:f36e:27a7
References: <s752uq$ak4$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
Subject: Re: cpmtools bug?
From: rwde...@gmail.com (rwd...@gmail.com)
Injection-Date: Sat, 08 May 2021 17:10:36 +0000
Content-Type: text/plain; charset="UTF-8"
 by: rwd...@gmail.com - Sat, 8 May 2021 17:10 UTC

On Saturday, 8 May 2021 at 05:10:07 UTC+1, dxforth wrote:
> I think there may be a bug in cpmtools.
>
> For a disk images where DSM = 255 (total disk blocks = 256
> e.g. YAZE 512K) cpmtools appears to be reading directory block
> numbers as 16-bit values rather than 8-bits. This results in
> an 'Attempting to access block beyond end of disk' error.
>
> I'm using this version of cpmtools:
>
> http://www.cpm8680.com/cpmtools/
>
> though a 2008 binary I had displayed the same problem

Can you retest under linux as the Windows build is much older than the newest code on the author's site?
http://www.moria.de/~michael/cpmtools/

Richard

Re: cpmtools bug?

<s77d69$nja$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2499&group=comp.os.cpm#2499

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: Re: cpmtools bug?
Date: Sun, 9 May 2021 11:16:59 +1000
Organization: Aioe.org NNTP Server
Lines: 54
Message-ID: <s77d69$nja$1@gioia.aioe.org>
References: <s752uq$ak4$1@gioia.aioe.org>
<85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
NNTP-Posting-Host: xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Sun, 9 May 2021 01:16 UTC

On 9/05/2021 03:10, rwd...@gmail.com wrote:
> On Saturday, 8 May 2021 at 05:10:07 UTC+1, dxforth wrote:
>> I think there may be a bug in cpmtools.
>>
>> For a disk images where DSM = 255 (total disk blocks = 256
>> e.g. YAZE 512K) cpmtools appears to be reading directory block
>> numbers as 16-bit values rather than 8-bits. This results in
>> an 'Attempting to access block beyond end of disk' error.
>>
>> I'm using this version of cpmtools:
>>
>> http://www.cpm8680.com/cpmtools/
>>
>> though a 2008 binary I had displayed the same problem
>
> Can you retest under linux as the Windows build is much older than the newest code on the author's site?
> http://www.moria.de/~michael/cpmtools/
>
> Richard
>

Don't have linux but anyone who does may grab one of the 512K disk images
included in the YAZE distribution:

http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/devel/

If my surmise is correct, this definition which defines a disk capacity of
exactly 256 blocks will fail when extracting files with 'cpmcp':

diskdef yaze512
seclen 128
tracks 512
sectrk 8
blocksize 2048
maxdir 1024
skew 1
boottrk 0
os 3
offset 128
end

Reducing the number of tracks by one (blocks=255) and cpmtools now works:

diskdef yaze511
seclen 128
tracks 511
sectrk 8
blocksize 2048
maxdir 1024
skew 1
boottrk 0
os 3
offset 128
end

Re: cpmtools bug?

<93c1d4d7-4b33-40f2-a509-a504532a38b8n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2500&group=comp.os.cpm#2500

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:8b86:: with SMTP id n128mr17581873qkd.151.1620563716080;
Sun, 09 May 2021 05:35:16 -0700 (PDT)
X-Received: by 2002:a05:6808:91:: with SMTP id s17mr893708oic.1.1620563715644;
Sun, 09 May 2021 05:35:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 05:35:15 -0700 (PDT)
In-Reply-To: <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <93c1d4d7-4b33-40f2-a509-a504532a38b8n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Sun, 09 May 2021 12:35:16 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 246
 by: ldkr...@gmail.com - Sun, 9 May 2021 12:35 UTC

I'm using the z80asm.ydsk image of 1048704 bytes.

My cpmtools definition is
diskdef yaze1m
# BSH 4 BLM 15 EXM 0 DSM 511 DRM 1023 AL0 0FFH AL1 0FFH OFS 0
seclen 128
tracks 8192
sectrk 8
blocksize 2048
maxdir 1024
skew 1
offset 128
boottrk 0
os 3
end

and my libdsk definition is
[yaze1m]
description = yaze1m image
cylinders = 8192
heads = 1
secsize = 128
sectors = 8
secbase = 1
datarate = DD

I used hexedit to locate the directory of z80asm.ydsk, and broke out the USER {0..15} area(s).

hexedit z80asm.ydsk

Directory is at 0x0080 = 128 Decimal

USER 1
00000080 01 43 4F 4E 46 49 47 20 20 43 4F 4D 00 00 00 1F .CONFIG COM....
00000090 10 00 11 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000A0 01 44 55 4D 50 20 20 20 20 43 4F 4D 00 00 00 02 .DUMP COM....
000000B0 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000C0 01 4D 41 4B 45 53 59 4D 20 43 4F 4D 00 00 00 0A .MAKESYM COM....
000000D0 13 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000E0 01 5A 38 30 41 53 4D 20 20 43 4F 4D 00 00 00 80 .Z80ASM COM....
000000F0 14 00 15 00 16 00 17 00 18 00 19 00 1A 00 1B 00 ................
00000100 01 5A 38 30 41 53 4D 20 20 43 4F 4D 01 00 00 44 .Z80ASM COM...D
00000110 1C 00 1D 00 1E 00 1F 00 20 00 00 00 00 00 00 00 ........ .......

USER 2
00000120 02 4C 4E 4B 46 49 47 20 20 43 4F 4D 00 00 00 0E .LNKFIG COM....
00000130 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 !...............
00000140 02 53 4C 52 49 42 20 20 20 43 4F 4D 00 00 00 1F .SLRIB COM....
00000150 22 00 23 00 00 00 00 00 00 00 00 00 00 00 00 00 ".#.............
00000160 02 53 4C 52 4E 4B 20 20 20 43 4F 4D 00 00 00 44 .SLRNK COM...D
00000170 24 00 25 00 26 00 27 00 28 00 00 00 00 00 00 00 $.%.&.'.(.......
00000180 02 53 4C 52 4E 4B 31 20 20 43 4F 4D 00 00 00 44 .SLRNK1 COM...D
00000190 29 00 2A 00 2B 00 2C 00 2D 00 00 00 00 00 00 00 ).*.+.,.-.......

USER 3
000001A0 03 31 38 30 46 49 47 20 20 43 4F 4D 00 00 00 1E .180FIG COM....
000001B0 2E 00 2F 00 00 00 00 00 00 00 00 00 00 00 00 00 ../.............
000001C0 03 4D 41 4B 45 53 59 4D 20 43 4F 4D 00 00 00 09 .MAKESYM COM....
000001D0 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0...............
000001E0 03 53 4C 52 31 38 30 20 20 43 4F 4D 00 00 00 80 .SLR180 COM....
000001F0 31 00 32 00 33 00 34 00 35 00 36 00 37 00 38 00 1.2.3.4.5.6.7.8.
00000200 03 53 4C 52 31 38 30 20 20 43 4F 4D 01 00 00 45 .SLR180 COM...E
00000210 39 00 3A 00 3B 00 3C 00 3D 00 00 00 00 00 00 00 9.:.;.<.=.......

USER 0
00000220 00 43 4F 4E 54 45 4E 54 53 54 58 54 00 00 00 02 .CONTENTSTXT....
00000230 3E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >...............

USER 1
00000240 01 30 2D 52 45 41 44 4D 45 31 53 54 00 00 00 02 .0-README1ST....
00000250 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?...............
00000260 01 38 30 38 30 20 20 20 20 4D 41 43 00 00 00 24 .8080 MAC...$
00000270 40 00 41 00 42 00 00 00 00 00 00 00 00 00 00 00 @.A.B...........
00000280 01 43 52 43 4B 4C 49 53 54 43 52 43 00 00 00 04 .CRCKLISTCRC....
00000290 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C...............
000002A0 01 44 55 4D 50 20 20 20 20 48 45 58 00 00 00 05 .DUMP HEX....
000002B0 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D...............
000002C0 01 44 55 4D 50 20 20 20 20 4C 53 54 00 00 00 30 .DUMP LST...0
000002D0 45 00 46 00 47 00 00 00 00 00 00 00 00 00 00 00 E.F.G...........
000002E0 01 44 55 4D 50 20 20 20 20 52 45 4C 00 00 00 03 .DUMP REL....
000002F0 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 H...............
00000300 01 44 55 4D 50 20 20 20 20 5A 38 30 00 00 00 11 .DUMP Z80....
00000310 49 00 4A 00 00 00 00 00 00 00 00 00 00 00 00 00 I.J.............
00000320 01 4D 41 4B 45 53 59 4D 20 44 4F 43 00 00 00 0F .MAKESYM DOC....
00000330 4B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 K...............
00000340 01 5A 38 30 41 53 4D 20 20 44 4F 43 00 00 00 16 .Z80ASM DOC....
00000350 4C 00 4D 00 00 00 00 00 00 00 00 00 00 00 00 00 L.M.............
00000360 01 5A 38 30 41 53 4D 20 20 50 44 46 00 00 00 80 .Z80ASM PDF....
00000370 4E 00 4F 00 50 00 51 00 52 00 53 00 54 00 55 00 N.O.P.Q.R.S.T.U.
00000380 01 5A 38 30 41 53 4D 20 20 50 44 46 01 00 00 80 .Z80ASM PDF....
00000390 56 00 57 00 58 00 59 00 5A 00 5B 00 5C 00 5D 00 V.W.X.Y.Z.[.\.].
000003A0 01 5A 38 30 41 53 4D 20 20 50 44 46 02 00 00 80 .Z80ASM PDF....
000003B0 5E 00 5F 00 60 00 61 00 62 00 63 00 64 00 65 00 ^._.`.a.b.c.d.e.
000003C0 01 5A 38 30 41 53 4D 20 20 50 44 46 03 00 00 80 .Z80ASM PDF....
000003D0 66 00 67 00 68 00 69 00 6A 00 6B 00 6C 00 6D 00 f.g.h.i.j.k.l.m.
000003E0 01 5A 38 30 41 53 4D 20 20 50 44 46 04 00 00 80 .Z80ASM PDF....
000003F0 6E 00 6F 00 70 00 71 00 72 00 73 00 74 00 75 00 n.o.p.q.r.s.t.u.
00000400 01 5A 38 30 41 53 4D 20 20 50 44 46 05 00 00 80 .Z80ASM PDF....
00000410 76 00 77 00 78 00 79 00 7A 00 7B 00 7C 00 7D 00 v.w.x.y.z.{.|.}.
00000420 01 5A 38 30 41 53 4D 20 20 50 44 46 06 00 00 80 .Z80ASM PDF....
00000430 7E 00 7F 00 80 00 81 00 82 00 83 00 84 00 85 00 ~...............
00000440 01 5A 38 30 41 53 4D 20 20 50 44 46 07 00 00 80 .Z80ASM PDF....
00000450 86 00 87 00 88 00 89 00 8A 00 8B 00 8C 00 8D 00 ................
00000460 01 5A 38 30 41 53 4D 20 20 50 44 46 08 00 00 1E .Z80ASM PDF....
00000470 8E 00 8F 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

USER 2
00000480 02 30 2D 52 45 41 44 4D 45 31 53 54 00 00 00 02 .0-README1ST....
00000490 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000004A0 02 43 52 43 4B 4C 49 53 54 43 52 43 00 00 00 04 .CRCKLISTCRC....
000004B0 91 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000004C0 02 4E 5A 4C 4E 4B 46 49 58 5A 45 58 00 00 00 08 .NZLNKFIXZEX....
000004D0 92 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000004E0 02 53 4C 52 4E 4B 20 20 20 50 44 46 00 00 00 80 .SLRNK PDF....
000004F0 93 00 94 00 95 00 96 00 97 00 98 00 99 00 9A 00 ................
00000500 02 53 4C 52 4E 4B 20 20 20 50 44 46 01 00 00 80 .SLRNK PDF....
00000510 9B 00 9C 00 9D 00 9E 00 9F 00 A0 00 A1 00 A2 00 ................
00000520 02 53 4C 52 4E 4B 20 20 20 50 44 46 02 00 00 80 .SLRNK PDF....
00000530 A3 00 A4 00 A5 00 A6 00 A7 00 A8 00 A9 00 AA 00 ................
00000540 02 53 4C 52 4E 4B 20 20 20 50 44 46 03 00 00 5E .SLRNK PDF...^
00000550 AB 00 AC 00 AD 00 AE 00 AF 00 B0 00 00 00 00 00 ................
00000560 02 53 4C 52 4E 4B 46 49 58 5A 45 58 00 00 00 08 .SLRNKFIXZEX....
00000570 B1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000580 02 53 59 4E 54 41 58 20 20 48 4C 50 00 00 00 3F .SYNTAX HLP...?
00000590 B2 00 B3 00 B4 00 B5 00 00 00 00 00 00 00 00 00 ................
000005A0 02 53 59 53 53 4C 52 20 20 52 45 4C 00 00 00 80 .SYSSLR REL....
000005B0 B6 00 B7 00 B8 00 B9 00 BA 00 BB 00 BC 00 BD 00 ................
000005C0 02 53 59 53 53 4C 52 20 20 52 45 4C 01 00 00 34 .SYSSLR REL...4
000005D0 BE 00 BF 00 C0 00 C1 00 00 00 00 00 00 00 00 00 ................
000005E0 02 56 53 4C 52 20 20 20 20 52 45 4C 00 00 00 0D .VSLR REL....
000005F0 C2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000600 02 5A 33 53 4C 52 20 20 20 52 45 4C 00 00 00 4B .Z3SLR REL...K
00000610 C3 00 C4 00 C5 00 C6 00 C7 00 00 00 00 00 00 00 ................

USER 3
00000620 03 30 2D 52 45 41 44 4D 45 31 53 54 00 00 00 02 .0-README1ST....
00000630 C8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000640 03 38 30 38 30 20 20 20 20 4D 41 43 00 00 00 24 .8080 MAC...$
00000650 C9 00 CA 00 CB 00 00 00 00 00 00 00 00 00 00 00 ................
00000660 03 43 52 43 4B 4C 49 53 54 43 52 43 00 00 00 03 .CRCKLISTCRC....
00000670 CC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000680 03 44 55 4D 50 20 20 20 20 31 38 30 00 00 00 11 .DUMP 180....
00000690 CD 00 CE 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000006A0 03 4D 41 4B 45 53 59 4D 20 44 4F 43 00 00 00 0F .MAKESYM DOC....
000006B0 CF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000006C0 03 53 4C 52 31 38 30 20 20 44 4F 43 00 00 00 13 .SLR180 DOC....
000006D0 D0 00 D1 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000006E0 03 53 59 4E 54 41 58 20 20 48 4C 50 00 00 00 3F .SYNTAX HLP...?
000006F0 D2 00 D3 00 D4 00 D5 00 00 00 00 00 00 00 00 00 ................

00000700 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000710 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000720 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000730 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

Using my updated yaze1m definition I created a libdsk definition for .libdskrc, then tried
a directory listing.


Click here to read the complete article
Re: cpmtools bug?

<ef4bba59-74cd-4f8e-9291-6a8210e6d267n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2501&group=comp.os.cpm#2501

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ad4:4d94:: with SMTP id cv20mr18904917qvb.26.1620564209591;
Sun, 09 May 2021 05:43:29 -0700 (PDT)
X-Received: by 2002:aca:f2c1:: with SMTP id q184mr21454870oih.29.1620564209273;
Sun, 09 May 2021 05:43:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 05:43:29 -0700 (PDT)
In-Reply-To: <93c1d4d7-4b33-40f2-a509-a504532a38b8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<93c1d4d7-4b33-40f2-a509-a504532a38b8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ef4bba59-74cd-4f8e-9291-6a8210e6d267n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Sun, 09 May 2021 12:43:29 +0000
Content-Type: text/plain; charset="UTF-8"
 by: ldkr...@gmail.com - Sun, 9 May 2021 12:43 UTC

$ cpmcp -f yaze1m -T raw,yaze1m z80asm.ydsk 1:DUMP.LST ./z80asm/

DUMP.LST appears to be sane.

'DUMP - Recreated by Z80DIS' 20 Nov 11320:10 Z80ASM 1.32 Page 1
DUMP Z80

2
3 0100 ORG 0100H
4
5 0005 CPM EQU 0005H
6 005C DFCB EQU 005CH
7 0065 FCBEXT EQU 0065H
8
9 0100 DUMP
10 0100 11 005C LD DE,DFCB
11 0103 0E 0F LD C,0FH ;SI
12 0105 CD 0005 CALL CPM ;OPENFIL
13 0108 3C INC A
14 0109 20 09 JR NZ,FILEOK
15 010B 11 01E6 LD DE,CANTOPE
16 010E 0E 09 LD C,09H ;HT
17 0110 CD 0005 CALL CPM ;PRNTSTG
18 0113 C9 RET
19 0114 FILEOK
20 0114 21 0065 LD HL,FCBEXT
21 0117 7E LD A,(HL)
22 0118 FE 43 CP 43H ;'C'
23 011A 20 12 JR NZ,NEXTPAGE
24 011C 23 INC HL
25 011D 7E LD A,(HL)
26 011E FE 4F CP 4FH ;'O'
27 0120 20 0C JR NZ,NEXTPAGE
28 0122 23 INC HL
29 0123 7E LD A,(HL)
30 0124 FE 4D CP 4DH ;'M'
31 0126 20 06 JR NZ,NEXTPAGE
32 0128 21 0100 LD HL,DUMP
33 012B 22 01F7 LD (ADDR),HL
34 012E NEXTPAGE
35 012E 1E 0C LD E,0CH ;FF
36 0130 0E 02 LD C,02H ;STX
37 0132 CD 0005 CALL CPM ;CONOUT
38 0135 3E 08 LD A,08H ;BS
39 0137 32 01FB LD (PAGECNT),A
40 013A NEXTSECT
41 013A 11 005C LD DE,DFCB
42 013D 0E 14 LD C,14H ;DC4
43 013F CD 0005 CALL CPM ;READSEQ
44 0142 B7 OR A
45 0143 C0 RET NZ
46 0144 3E 08 LD A,08H ;BS
47 0146 32 01F6 LD (LINECNT),A
48 0149 21 0080 LD HL,0080H
49 014C 22 01F9 LD (ADDR1),HL
50 014F NXTLINE
51 014F 0E 0B LD C,0BH ;VT
52 0151 CD 0005 CALL CPM ;CONSTAT
53 0154 B7 OR A
54 0155 C0 RET NZ
55 0156 21 01FC LD HL,OUTBUF
56 0159 36 0D LD (HL),0DH ;CR
57 015B 23 INC HL
58 015C 36 0A LD (HL),0AH ;LF
59 015E 23 INC HL

'DUMP - Recreated by Z80DIS' 20 Nov 11320:10 Z80ASM 1.32 Page 2
DUMP Z80

60 015F ED 5B 01F7 LD DE,(ADDR)
61 0163 7A LD A,D
62 0164 CD 01C7 CALL HEXOUT
63 0167 7B LD A,E
64 0168 CD 01C7 CALL HEXOUT
65 016B 36 20 LD (HL),20H ;' '
66 016D 23 INC HL
67 016E EB EX DE,HL
68 016F 01 0010 LD BC,0010H
69 0172 09 ADD HL,BC
70 0173 22 01F7 LD (ADDR),HL
71 0176 EB EX DE,HL
72 0177 ED 5B 01F9 LD DE,(ADDR1)
73 017B 06 10 LD B,10H ;DLE
74 017D NXTBYTE
75 017D 1A LD A,(DE)
76 017E 13 INC DE
77 017F CD 01C7 CALL HEXOUT
78 0182 36 20 LD (HL),20H ;' '
79 0184 23 INC HL
80 0185 10 F6 DJNZ NXTBYTE
81 0187 36 20 LD (HL),20H ;' '
82 0189 23 INC HL
83 018A 36 24 LD (HL),24H ;'$'
84 018C 11 01FC LD DE,OUTBUF
85 018F 0E 09 LD C,09H ;HT
86 0191 CD 0005 CALL CPM ;PRNTSTG
87 0194 2A 01F9 LD HL,(ADDR1)
88 0197 06 10 LD B,10H ;DLE
89 0199 NXTASCI
90 0199 7E LD A,(HL)
91 019A 23 INC HL
92 019B E6 7F AND 7FH ;DEL
93 019D FE 20 CP 20H ;' '
94 019F 38 04 JR C,CTRL
95 01A1 FE 7F CP 7FH ;DEL
96 01A3 20 02 JR NZ,NOTCTRL
97 01A5 CTRL
98 01A5 3E 2E LD A,2EH ;'.'
99 01A7 NOTCTRL
100 01A7 5F LD E,A
101 01A8 0E 02 LD C,02H ;STX
102 01AA C5 PUSH BC
103 01AB E5 PUSH HL
104 01AC CD 0005 CALL CPM ;CONOUT
105 01AF E1 POP HL
106 01B0 C1 POP BC
107 01B1 10 E6 DJNZ NXTASCI
108 01B3 22 01F9 LD (ADDR1),HL
109 01B6 21 01F6 LD HL,LINECNT
110 01B9 35 DEC (HL)
111 01BA C2 014F JP NZ,NXTLINE
112 01BD 21 01FB LD HL,PAGECNT
113 01C0 35 DEC (HL)
114 01C1 C2 013A JP NZ,NEXTSECT
115 01C4 C3 012E JP NEXTPAGE
116 01C7 HEXOUT
117 01C7 F5 PUSH AF

'DUMP - Recreated by Z80DIS' 20 Nov 11320:10 Z80ASM 1.32 Page 3
DUMP Z80

118 01C8 1F RRA
119 01C9 1F RRA
120 01CA 1F RRA
121 01CB 1F RRA
122 01CC E6 0F AND 0FH ;SI
123 01CE C6 30 ADD A,30H ;'0'
124 01D0 FE 3A CP 3AH ;':'
125 01D2 38 02 JR C,HEX1
126 01D4 C6 07 ADD A,07H ;BEL
127 01D6 HEX1
128 01D6 77 LD (HL),A
129 01D7 23 INC HL
130 01D8 F1 POP AF
131 01D9 E6 0F AND 0FH ;SI
132 01DB C6 30 ADD A,30H ;'0'
133 01DD FE 3A CP 3AH ;':'
134 01DF 38 02 JR C,HEX2
135 01E1 C6 07 ADD A,07H ;BEL
136 01E3 HEX2
137 01E3 77 LD (HL),A
138 01E4 23 INC HL
139 01E5 C9 RET
140 01E6 CANTOPE
141 01E6 43 61 6E 27 DEFB 43H,61H,6EH,27H,74H,20H ; Can't
142 01EC 4F 70 65 6E DEFB 4FH,70H,65H,6EH,20H,46H ; Open F
143 01F2 69 6C 65 24 DEFB 69H,6CH,65H,24H ; ile$
144 01F6 LINECNT
145 01F6 0001 DEFS 0001H
146 01F7 ADDR
147 01F7 0002 DEFS 0002H
148 01F9 ADDR1
149 01F9 0002 DEFS 0002H
150 01FB PAGECNT
151 01FB 0001 DEFS 0001H
152 01FC OUTBUF
153 01FC 0004 DEFS 0004H
154 END
0 Error(s) Detected.
256 Absolute Bytes. 21 Symbols Detected.

EOF Marker, THEN BELOW IS TRASH......................
130 01D8 F1 POP AF
131 01D9 E6 0F AND 0FH ;SI
132 01DB C6 30

Larry

Re: cpmtools bug?

<a0ef3ef0-bcb7-464c-86a0-530a5cbccfe1n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2502&group=comp.os.cpm#2502

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:6799:: with SMTP id b25mr18350731qtp.165.1620566376857;
Sun, 09 May 2021 06:19:36 -0700 (PDT)
X-Received: by 2002:a54:4e1a:: with SMTP id a26mr12066288oiy.139.1620566376536;
Sun, 09 May 2021 06:19:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 06:19:36 -0700 (PDT)
In-Reply-To: <e5a710e1-78d7-4bce-956a-84d5190f4f18n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<93c1d4d7-4b33-40f2-a509-a504532a38b8n@googlegroups.com> <ef4bba59-74cd-4f8e-9291-6a8210e6d267n@googlegroups.com>
<e5a710e1-78d7-4bce-956a-84d5190f4f18n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a0ef3ef0-bcb7-464c-86a0-530a5cbccfe1n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Sun, 09 May 2021 13:19:36 +0000
Content-Type: text/plain; charset="UTF-8"
 by: ldkr...@gmail.com - Sun, 9 May 2021 13:19 UTC

$ cpmls -f yaze1m -T raw,yaze1m -D testdsk.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
3DIR .COM 32K 242
CHAT-ORG.Z80 4K 17
CHAT .COM 2K 1
CHAT .Z80 4K 17
CRCKLIST.CRC 2K 6
DISKSORT.COM 14K 97
DISKSORT.MSG 12K 86
MAKERW .SUB 2K 2
R .COM 4K 32
RECV .COM 2K 1
RECV .Z80 2K 12
RW .TXT 2K 13
SETXFL .MAC 2K 12
SPL .COM 28K 219
SPLERROR.DAT 8K 50
SPLRTLB .REL 2K 15 R
W .COM 6K 33
YBIOS .MAC 2K 5
YREAD .SPL 20K 150
YWRITE .SPL 20K 157
20 Files occupying 22K, 8138K Free.

$ cpmls -f yaze1m -T raw,yaze1m -D wordstar400.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
ANAGRAM .COM 2K 10
CHAPTER1.DOC 2K 1
CHAPTER2.DOC 2K 1
CHAPTER3.DOC 2K 1
CPM3WS4 .Z80 2K 10
CRCKLIST.CRC 2K 13
DIARY .DOC 4K 28
DICTSORT.COM 2K 14
FIND .COM 2K 10
HOMONYMS.TXT 6K 44
HYEXCEPT.TXT 6K 34
HYPHEN .COM 8K 64
LOOKUP .COM 2K 16
MAINDICT.CMP 164K 1304
MARKFIX .COM 4K 28
MOVEPRN .COM 6K 39
PATCH .LST 68K 534
PRINT .TST 6K 33
READ .ME 78K 615
README . 2K 4
REVIEW .COM 6K 42
RULER .DOC 2K 7
SAMPLE1 .DOC 2K 5
SAMPLE2 .DOC 2K 3
SAMPLE3 .DOC 2K 2
SPELL .COM 4K 32
TABLE .DOC 2K 7
TEXT .DOC 6K 44
TW .COM 4K 24
WC .COM 2K 10
WINSTALL.COM 20K 160
WORDFREQ.COM 4K 20
WS .COM 8K 53
WS .OVR 52K 413
WSCHANGE.COM 36K 273
WSCHANGE.OVR 22K 171
WSCHHELP.OVR 30K 227
WSHELP .OVR 26K 202
WSINDEX .XCL 2K 12
WSMSGS .OVR 14K 105
WSPRINT .OVR 150K 1193
WSSHORT .OVR 2K 4
42 Files occupying 768K, 7392K Free.

$ cpmls -f yaze1m -T raw,yaze1m -D z80asm.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
CONTENTS.TXT 2K 2

User 1:

Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-README.1ST 2K 2
8080 .MAC 6K 36
CONFIG .COM 4K 31
CRCKLIST.CRC 2K 4
DUMP .COM 2K 2
DUMP .HEX 2K 5
DUMP .LST 6K 48
DUMP .REL 2K 3
DUMP .Z80 4K 17
MAKESYM .COM 2K 10
MAKESYM .DOC 2K 15
Z80ASM .COM 26K 196
Z80ASM .DOC 4K 22
Z80ASM .PDF 132K 1054

User 2:

Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-README.1ST 2K 2
CRCKLIST.CRC 2K 4
LNKFIG .COM 2K 14
NZLNKFIX.ZEX 2K 8
SLRIB .COM 4K 31
SLRNK .COM 10K 68
SLRNK .PDF 60K 478
SLRNK1 .COM 10K 68
SLRNKFIX.ZEX 2K 8
SYNTAX .HLP 8K 63
SYSSLR .REL 24K 180
VSLR .REL 2K 13
Z3SLR .REL 10K 75

User 3:

Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-README.1ST 2K 2
180FIG .COM 4K 30
8080 .MAC 6K 36
CRCKLIST.CRC 2K 3
DUMP .180 4K 17
MAKESYM .COM 2K 9
MAKESYM .DOC 2K 15
SLR180 .COM 26K 197
SLR180 .DOC 4K 19
SYNTAX .HLP 8K 63
38 Files occupying 396K, 7764K Free.

Larry

Re: cpmtools bug?

<2fd0ea29-9dd1-47e7-afa6-7f6ea03173c1n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2503&group=comp.os.cpm#2503

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:4109:: with SMTP id q9mr3039210qtl.153.1620567632675;
Sun, 09 May 2021 06:40:32 -0700 (PDT)
X-Received: by 2002:aca:e003:: with SMTP id x3mr14771483oig.118.1620567632291;
Sun, 09 May 2021 06:40:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 06:40:32 -0700 (PDT)
In-Reply-To: <a0ef3ef0-bcb7-464c-86a0-530a5cbccfe1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<93c1d4d7-4b33-40f2-a509-a504532a38b8n@googlegroups.com> <ef4bba59-74cd-4f8e-9291-6a8210e6d267n@googlegroups.com>
<e5a710e1-78d7-4bce-956a-84d5190f4f18n@googlegroups.com> <a0ef3ef0-bcb7-464c-86a0-530a5cbccfe1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2fd0ea29-9dd1-47e7-afa6-7f6ea03173c1n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Sun, 09 May 2021 13:40:32 +0000
Content-Type: text/plain; charset="UTF-8"
 by: ldkr...@gmail.com - Sun, 9 May 2021 13:40 UTC

Updated cpmtools and libdsk definitions:

diskdef yaze256
# BSH 4 BLM 15 EXM 1 DSM 127 DRM 1023 AL0 0FFH AL1 0FFH OFS 0
seclen 128
tracks 2048
sectrk 8
blocksize 2048
maxdir 1024
skew 1
offset 128
boottrk 0
os 3
end

[yaze256]
description = yaze256 image
cylinders = 2048
heads = 1
secsize = 128
sectors = 8
secbase = 1
datarate = DD

diskdef yaze512
# BSH 4 BLM 15 EXM 1 DSM 255 DRM 1023 AL0 0FFH AL1 0FFH OFS 0
seclen 128
tracks 4096
sectrk 8
blocksize 2048
maxdir 1024
skew 1
offset 128
boottrk 0
os 3
end

[yaze512]
description = yaze512 image
cylinders = 4096
heads = 1
secsize = 128
sectors = 8
secbase = 1
datarate = DD

diskdef yaze1m
# BSH 4 BLM 15 EXM 0 DSM 511 DRM 1023 AL0 0FFH AL1 0FFH OFS 0
seclen 128
tracks 8192
sectrk 8
blocksize 2048
maxdir 1024
skew 1
offset 128
boottrk 0
os 3
end

[yaze1m]
description = yaze1m image
cylinders = 8192
heads = 1
secsize = 128
sectors = 8
secbase = 1
datarate = DD

diskdef yaze2m
# BSH 4 BLM 15 EXM 0 DSM 1023 DRM 1023 AL0 0FFH AL1 0FFH OFS 0
seclen 128
tracks 16384
sectrk 8
blocksize 2048
maxdir 1024
skew 1
offset 128
boottrk 0
os 3
end

[yaze2m]
description = yaze2m image
cylinders = 16384
heads = 1
secsize = 128
sectors = 8
secbase = 1
datarate = DD

diskdef yaze4m
# BSH 4 BLM 15 EXM 0 DSM 2047 DRM 1023 AL0 0FFH AL1 0FFH OFS 0
seclen 128
tracks 32768
sectrk 8
blocksize 2048
maxdir 1024
skew 1
offset 128
boottrk 0
os 3
end

[yaze4m]
description = yaze4m image
cylinders = 32768
heads = 1
secsize = 128
sectors = 8
secbase = 1
datarate = DD

Larry

Re: cpmtools bug?

<dc486fd1-375d-4e7b-b846-3a9634119925n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2504&group=comp.os.cpm#2504

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:a682:: with SMTP id p124mr18672118qke.418.1620572076940; Sun, 09 May 2021 07:54:36 -0700 (PDT)
X-Received: by 2002:a9d:1ec6:: with SMTP id n64mr17764954otn.3.1620572076592; Sun, 09 May 2021 07:54:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!nntp.speedium.network!feeder01!81.171.65.14.MISMATCH!peer02.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 07:54:36 -0700 (PDT)
In-Reply-To: <s752uq$ak4$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c6:e20b:ce00:b9f4:1f05:f36e:27a7; posting-account=QRaRpQoAAAAAa6T9BMU2_8duN2L8AmC_
NNTP-Posting-Host: 2a00:23c6:e20b:ce00:b9f4:1f05:f36e:27a7
References: <s752uq$ak4$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dc486fd1-375d-4e7b-b846-3a9634119925n@googlegroups.com>
Subject: Re: cpmtools bug?
From: rwde...@gmail.com (rwd...@gmail.com)
Injection-Date: Sun, 09 May 2021 14:54:36 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2240
 by: rwd...@gmail.com - Sun, 9 May 2021 14:54 UTC

On Saturday, 8 May 2021 at 05:10:07 UTC+1, dxforth wrote:
> I think there may be a bug in cpmtools.
>
> For a disk images where DSM = 255 (total disk blocks = 256
> e.g. YAZE 512K) cpmtools appears to be reading directory block
> numbers as 16-bit values rather than 8-bits. This results in
> an 'Attempting to access block beyond end of disk' error.
>
> I'm using this version of cpmtools:
>
> http://www.cpm8680.com/cpmtools/
>
> though a 2008 binary I had displayed the same problem

I am trying it under Windows against Turbo-Modula-2.ydsk
I get the error message that you refer to with sector = 512 with the Wild Turkey flavour of cpmtools (cpmcp). If I use CpmtoolsGUI I get the error message "Assertion failed: blockno<d->size, filecpmfs.c,line 278
If I change diskdefs to sector = 511 I get no error with either version of cpmtools.

This appears to confirm your bug report.

I tried it on my rpi linux and strangely not getting cpmls to work with either definition in dskdefs. I am sure cpmls is picking up the right diskdefs. Something for another day.

Richard

..

Re: cpmtools bug?

<1049434b-5374-420b-b6de-b3e7429a08bdn@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2505&group=comp.os.cpm#2505

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ae9:edcd:: with SMTP id c196mr18225255qkg.441.1620573420269;
Sun, 09 May 2021 08:17:00 -0700 (PDT)
X-Received: by 2002:a9d:d0f:: with SMTP id 15mr17380355oti.255.1620573419919;
Sun, 09 May 2021 08:16:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 08:16:59 -0700 (PDT)
In-Reply-To: <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c6:e20b:ce00:b9f4:1f05:f36e:27a7;
posting-account=QRaRpQoAAAAAa6T9BMU2_8duN2L8AmC_
NNTP-Posting-Host: 2a00:23c6:e20b:ce00:b9f4:1f05:f36e:27a7
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1049434b-5374-420b-b6de-b3e7429a08bdn@googlegroups.com>
Subject: Re: cpmtools bug?
From: rwde...@gmail.com (rwd...@gmail.com)
Injection-Date: Sun, 09 May 2021 15:17:00 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 17
 by: rwd...@gmail.com - Sun, 9 May 2021 15:16 UTC

On Sunday, 9 May 2021 at 13:17:21 UTC+1, ldkr...@gmail.com wrote:
> dxforth,
> I'm not finding any 512 Kbyte images. I just downloaded all three *.ydsk images and I only have
> larry@debian:~/Downloads/yaze$ ls -alt *.ydsk
> -rw-r--r-- 1 larry larry 262272 May 9 07:10 testdsk.ydsk
> -rw-r--r-- 1 larry larry 1048704 May 9 06:07 z80asm.ydsk
> -rw-r--r-- 1 larry larry 1048704 May 9 06:03 wordstar400.ydsk
>
> Can you point me to a 512 Kbyte image? I'd like to work on the same image you are using.
>
> I see you have also added the OFFSET 128 and SECTRK 8 stanzas.
>
> Larry

The images appear to be in the Windows version of yaze-ag under bin/disks but do not come in the tar file for the unix/linux flavour.
try turbo-modula-2.ydsk

Richard

Re: cpmtools bug?

<826c400b-6f4f-4afa-9ccf-9a39d30a6840n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2506&group=comp.os.cpm#2506

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:9a16:: with SMTP id c22mr18945920qke.0.1620576998898;
Sun, 09 May 2021 09:16:38 -0700 (PDT)
X-Received: by 2002:a9d:6106:: with SMTP id i6mr12909745otj.354.1620576998530;
Sun, 09 May 2021 09:16:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 09:16:38 -0700 (PDT)
In-Reply-To: <1049434b-5374-420b-b6de-b3e7429a08bdn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<1049434b-5374-420b-b6de-b3e7429a08bdn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <826c400b-6f4f-4afa-9ccf-9a39d30a6840n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Sun, 09 May 2021 16:16:38 +0000
Content-Type: text/plain; charset="UTF-8"
 by: ldkr...@gmail.com - Sun, 9 May 2021 16:16 UTC

All the *.ydsk files seem to work fine except for the CPM3_SYS.ydsk. I can not get a directory listing for
that file. cpmtools built with libdsk does not like the format for some reason.

Here are the directories for the other files.

4194432 Aug 23 2020 BOOT_UTILS.ydsk

$ cpmls -f yaze512 -T raw,yaze512 -D BOOT_UTILS.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-INHALT.TXT 2K 2
0-README.1ST 4K 26
3DIR .COM 32K 242 RS
3ERASE .COM 4K 27 RS
3SETDEF .COM 2K 14 RS
ARC .COM 28K 216 S
CCP .COM 4K 25 RS
CHN31 .COM 2K 9 RS
CHN31 .DOC 14K 100
CLS .COM 2K 1 S
CLS .TXT 4K 17
CLS .Z80 4K 29
CMP .COM 2K 10 RS
COMP .COM 8K 56 RS
CPM3-OK .COM 46K 357 RS
CPM3 .COM 46K 357
CPM3WS4 .Z80 2K 10
CRC .COM 4K 25 RS
CRCBUILD.COM 14K 105 S
CRCHECK .COM 10K 80 S
CRCKLIST.CRC 4K 29
DF .COM 2K 9 S
DF .TXT 2K 6
DF .Z80 12K 94
DIFF .COM 10K 78 RS
DISKS .TXT 2K 14
DU-V86 .COM 8K 59 RS
DU-V86 .DOC 14K 100
E .COM 2K 1 RS
FF .COM 2K 13 S
FF .TXT 2K 11
FF .Z80 28K 222
FLIP .C 4K 23
FLIP .COM 14K 102 S
FLIP .TXT 2K 4
I .COM 4K 22 RS
II .COM 4K 24 RS
INFO .TXT 4K 27
KTT .COM 2K 1 S
KTT .Z80 2K 7
L80 .COM 12K 84 RS
LC .COM 6K 48 RS
LIB80 .COM 6K 40 RS
LINKZ .COM 6K 47 RS
LU .C 20K 149
LU .COM 20K 152 S
LU11 .TXT 2K 7
M80 .COM 20K 157 RS
MAKE .COM 32K 255 RS
MAKE .DOC 6K 37
MERA .COM 2K 1 RS
MMUPRINT.COM 2K 1 RS
MOUNT .COM 2K 1 S
MOUNT .Z80 2K 8
NSWP .COM 12K 92 S
NSWP .DOC 30K 233
PAUSE .COM 2K 1 RS
PIP .COM 10K 75 RS
PMARC .COM 12K 81 RS
PMASET .COM 12K 88 RS
PMCAT .COM 8K 50 RS
PMEXE2 .COM 2K 12 RS
PMEXT .COM 14K 101 RS
PMSET .COM 4K 25 RS
PMSFX2 .COM 4K 17 RS
PROFILE .SUB 2K 9
R .COM 4K 32
RESETDSK.COM 2K 1 RS
RESETDSK.Z80 2K 2
RW .TXT 2K 13
S .COM 12K 92 RS
SENDUUE .COM 2K 3 RS
SUB .COM 4K 22 RS
SUBMIT .COM 6K 42 RS
SYS .COM 2K 1 RS
SYS .Z80 2K 12
T .SUB 2K 1
TABS6 .COM 2K 16 RS
TABS6 .DOC 4K 28
TEST .SUB 2K 1
TOUCH .COM 16K 124 RS
TOUCH .DOC 2K 1
UNARC .COM 6K 37 RS
UNIXMAKE.MAN 18K 137
UNLOAD .COM 2K 12 RS
W .COM 6K 34
WS .COM 8K 53 RS
WS .OVR 52K 413 RS
WSHELP .OVR 26K 202 RS
WSINDEX .XCL 2K 12 RS
WSMSGS .OVR 14K 105 RS
WSPRINT .OVR 150K 1193 RS
WSSHORT .OVR 2K 4 RS
Z80ASM .COM 26K 196 RS
Z80ASM .DOC 8K 50
ZSID .COM 10K 80 RS
96 Files occupying 1004K, 3060K Free.

1048704 Aug 22 2020 CPM3_SYS.ydsk
No good directory listing

262272 Aug 22 2020 test-utils-1.10.ydsk

$ cpmls -f yaze256 -T raw,yaze256 -D test-utils-1.10.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-README.1ST 2K 5
CRCKLIST.CRC 2K 4
PRELIM .COM 2K 9
PRELIM .Z80 6K 43
SAVAGE .COM 14K 110
SAVAGE .PAS 2K 3
SYS-OLD .AZM 2K 7
SYS-OLD .COM 2K 1
TIMEX .COM 2K 1
Y .SUB 2K 1
ZEXALL .COM 10K 68
ZEXALL .Z80 40K 315
ZEXDOC .COM 10K 68
ZEXDOC .Z80 40K 315
14 Files occupying 24K, 1992K Free.

4194432 Mar 17 2020 BOOT_UTILS_windows.ydsk

$ cpmls -f yaze512 -T raw,yaze512 -D BOOT_UTILS_windows.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-INHALT.TXT 2K 2
0-README.1ST 4K 26
3DIR .COM 32K 242 RS
3ERASE .COM 4K 27 RS
3SETDEF .COM 2K 14 RS
ARC .COM 28K 216 S
CCP .COM 4K 25 RS
CHN31 .COM 2K 9 RS
CHN31 .DOC 14K 100
CLS .COM 2K 1 S
CLS .TXT 4K 17
CLS .Z80 4K 29
CMP .COM 2K 10 RS
COMP .COM 8K 56 RS
CPM3-OK .COM 46K 357 RS
CPM3 .COM 46K 357
CPM3WS4 .Z80 2K 10
CRC .COM 4K 25 RS
CRCBUILD.COM 14K 105 S
CRCHECK .COM 10K 80 S
CRCKLIST.CRC 4K 29
DF .COM 2K 9 S
DF .TXT 2K 6
DF .Z80 12K 94
DIFF .COM 10K 78 RS
DISKS .TXT 2K 14
DU-V86 .COM 8K 59 RS
DU-V86 .DOC 14K 100
E .COM 2K 1 RS
FF .COM 2K 13 S
FF .TXT 2K 11
FF .Z80 28K 222
FLIP .C 4K 23
FLIP .COM 14K 102 S
FLIP .TXT 2K 4
I .COM 4K 22 RS
II .COM 4K 24 RS
INFO .TXT 4K 27
KTT .COM 2K 1 S
KTT .Z80 2K 7
L80 .COM 12K 84 RS
LC .COM 6K 48 RS
LIB80 .COM 6K 40 RS
LINKZ .COM 6K 47 RS
LU .C 20K 149
LU .COM 20K 152 S
LU11 .TXT 2K 7
M80 .COM 20K 157 RS
MAKE .COM 32K 255 RS
MAKE .DOC 6K 37
MERA .COM 2K 1 RS
MMUPRINT.COM 2K 1 RS
MOUNT .COM 2K 1 S
MOUNT .Z80 2K 8
NSWP .COM 12K 92 S
NSWP .DOC 30K 233
PAUSE .COM 2K 1 RS
PIP .COM 10K 75 RS
PMARC .COM 12K 81 RS
PMASET .COM 12K 88 RS
PMCAT .COM 8K 50 RS
PMEXE2 .COM 2K 12 RS
PMEXT .COM 14K 101 RS
PMSET .COM 4K 25 RS
PMSFX2 .COM 4K 17 RS
PROFILE .SUB 2K 9
R .COM 4K 32
RESETDSK.COM 2K 1 RS
RESETDSK.Z80 2K 2
RW .TXT 2K 13
S .COM 12K 92 RS
SENDUUE .COM 2K 3 RS
SUB .COM 4K 22 RS
SUBMIT .COM 6K 42 RS
SYS .COM 2K 1 RS
SYS .Z80 2K 12
T .SUB 2K 1
TABS6 .COM 2K 16 RS
TABS6 .DOC 4K 28
TEST .SUB 2K 1
TOUCH .COM 16K 124 RS
TOUCH .DOC 2K 1
UNARC .COM 6K 37 RS
UNIXMAKE.MAN 18K 137
UNLOAD .COM 2K 12 RS
W .COM 6K 34
WS .COM 8K 53 RS
WS .OVR 52K 413 RS
WSHELP .OVR 26K 202 RS
WSINDEX .XCL 2K 12 RS
WSMSGS .OVR 14K 105 RS
WSPRINT .OVR 150K 1193 RS
WSSHORT .OVR 2K 4 RS
Z80ASM .COM 26K 196 RS
Z80ASM .DOC 8K 50
ZSID .COM 10K 80 RS
96 Files occupying 1004K, 3060K Free.

262272 Jun 28 2016 disksort.ydsk

$ cpmls -f yaze256 -T raw,yaze256 -D disksort.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-README.1ST 2K 6 12-Mar-2005 22:24
1-README.1ST 8K 50 12-Mar-2005 22:24
CCZ .COM 46K 355 R 12-Mar-2005 22:24
CRCKLIST.CRC 2K 4 12-Mar-2005 22:37
D .SUB 2K 1 12-Mar-2005 22:24
DD .SUB 2K 1 12-Mar-2005 22:24
DDD .SUB 2K 1 12-Mar-2005 22:24
DISKSORT.MAK 2K 16 12-Mar-2005 22:24
LIESMICH.1ST 8K 55 12-Mar-2005 22:24
MYLIB .REL 8K 57 R 12-Mar-2005 22:24
STDIO .H 2K 5 30-Dec-1977 22:00
XXXMAIN .REL 2K 3 R 30-Dec-1977 22:00
12 Files occupying 18K, 1998K Free.

524416 May 15 2016 turbo-modula-2.ydsk

$ cpmls -f yaze512 -T raw,yaze512 -D turbo-modula-2.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-README.1ST 2K 10
AGL .LIB 18K 136
BENCH .MOD 2K 7
BIRTHDAY.COM 20K 148
BIRTHDAY.MOD 4K 25
BOXLIB .DEF 2K 6
BOXLIB .MOD 4K 21
BOXTEST .MOD 2K 9
BTREE .MOD 8K 57
CASE .MOD 10K 74
COMPILE .MCD 14K 105 R
CPM .DEF 2K 2
CPM .MOD 2K 6
CRC3 .MOD 4K 21
CRC32 .DEF 4K 24
CRC32 .Z80 14K 101
CRC3216 .DEF 4K 28
CRC3216 .Z80 14K 109
CRCKLIST.CRC 4K 19
CRCX .MOD 2K 16
CROSS1 .MOD 4K 29
CROSS2 .MOD 16K 122
DATUM .DEF 2K 2
DATUM .REL 2K 4
DAYS .DEF 2K 7
DAYS .MOD 4K 18
DT .MOD 2K 2
ERRMSGS .OVR 4K 27 R
FORWARD .MOD 2K 2
GEBURTS .MOD 2K 13
GENZ80 .MCD 16K 117 R
HELLO .MOD 2K 1
INSTM2 .COM 26K 195 R
INSTM2 .DTA 6K 35 R
INSTM2 .MSG 6K 35 R
LIBRARY .MCD 4K 30 R
LINK .MCD 6K 39 R
M2 .COM 24K 186 R
M2 .KTT 4K 19
M2 .OVR 28K 221 R
MODULA-2.RAS 8K 49
MODULA2 .KWD 2K 4
PRIME .MOD 2K 9
PROFILE .MCD 2K 9 R
READ .ME 2K 8
REL .MCD 6K 44 R
SHELL .MCD 8K 49 R
STRTEXTS.MOD 2K 13
SYSLIB .LIB 34K 260 R
TAGE .DEF 2K 7
TAGE .MOD 2K 16
TERMATT .DEF 2K 16
TERMATT .MOD 8K 51
TESTC321.MOD 4K 21
TESTCRC .MOD 2K 14
TOPSORT .MOD 4K 17
WDEMO .MOD 6K 36
WINDOWS .DEF 10K 68
WINDOWS .MOD 20K 155
Z80DEMO .MOD 2K 4
Z80STUFF.DEF 2K 2
Z80STUFF.MCD 2K 2
Z80STUFF.SYM 2K 1
Z80STUFF.Z80 2K 2
ZDEMO .MOD 2K 6
65 Files occupying 84K, 3980K Free.


Click here to read the complete article
Re: cpmtools bug?

<25f2967e-9b2d-479c-a0f8-0def4c0ac095n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2507&group=comp.os.cpm#2507

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:ac0f:: with SMTP id e15mr8920576qkm.6.1620577901527;
Sun, 09 May 2021 09:31:41 -0700 (PDT)
X-Received: by 2002:a9d:7984:: with SMTP id h4mr17535101otm.213.1620577901267;
Sun, 09 May 2021 09:31:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 09:31:41 -0700 (PDT)
In-Reply-To: <826c400b-6f4f-4afa-9ccf-9a39d30a6840n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<1049434b-5374-420b-b6de-b3e7429a08bdn@googlegroups.com> <826c400b-6f4f-4afa-9ccf-9a39d30a6840n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <25f2967e-9b2d-479c-a0f8-0def4c0ac095n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Sun, 09 May 2021 16:31:41 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 17
 by: ldkr...@gmail.com - Sun, 9 May 2021 16:31 UTC

The difference is the 8 Bit versus 16 Bit entries in the Directory as shown below.

testdsk.ydsk
00000080 00 33 44 49 52 20 20 20 20 43 4F 4D 01 6A 00 73 .3DIR COM.j.s
00000090 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F ................
_____________^^_^^
000000A0 00 43 48 41 54 20 20 20 20 43 4F 4D 00 00 00 01 .CHAT COM....
000000B0 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...............

CPM3_SYS.ydsk
00000080 00 43 43 50 20 20 20 20 20 43 4F 4D 00 00 00 19 .CCP COM....
00000090 08 00 09 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
____________^^_____^^
000000A0 00 43 4D 50 20 20 20 20 20 43 4F 4D 00 00 00 0A .CMP COM....
000000B0 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

Larry

Re: cpmtools bug?

<9a047101-ecdc-4a8c-82cc-cda053075672n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2508&group=comp.os.cpm#2508

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:615c:: with SMTP id d28mr9797902qtm.192.1620577963124;
Sun, 09 May 2021 09:32:43 -0700 (PDT)
X-Received: by 2002:aca:f44c:: with SMTP id s73mr14820826oih.142.1620577962703;
Sun, 09 May 2021 09:32:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.swapon.de!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 09:32:42 -0700 (PDT)
In-Reply-To: <826c400b-6f4f-4afa-9ccf-9a39d30a6840n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c6:e20b:ce00:b9f4:1f05:f36e:27a7;
posting-account=QRaRpQoAAAAAa6T9BMU2_8duN2L8AmC_
NNTP-Posting-Host: 2a00:23c6:e20b:ce00:b9f4:1f05:f36e:27a7
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<1049434b-5374-420b-b6de-b3e7429a08bdn@googlegroups.com> <826c400b-6f4f-4afa-9ccf-9a39d30a6840n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9a047101-ecdc-4a8c-82cc-cda053075672n@googlegroups.com>
Subject: Re: cpmtools bug?
From: rwde...@gmail.com (rwd...@gmail.com)
Injection-Date: Sun, 09 May 2021 16:32:43 +0000
Content-Type: text/plain; charset="UTF-8"
 by: rwd...@gmail.com - Sun, 9 May 2021 16:32 UTC

On Sunday, 9 May 2021 at 17:16:39 UTC+1, ldkr...@gmail.com wrote:
> All the *.ydsk files seem to work fine except for the CPM3_SYS.ydsk. I can not get a directory listing for
> that file. cpmtools built with libdsk does not like the format for some reason.
>
> Here are the directories for the other files.
>
>
>
> 4194432 Aug 23 2020 BOOT_UTILS.ydsk
>
> $ cpmls -f yaze512 -T raw,yaze512 -D BOOT_UTILS.ydsk
> Name Bytes Recs Attr update create
> ------------ ------ ------ ---- ----------------- -----------------
> 0-INHALT.TXT 2K 2
> 0-README.1ST 4K 26
> 3DIR .COM 32K 242 RS
> 3ERASE .COM 4K 27 RS
> 3SETDEF .COM 2K 14 RS
> ARC .COM 28K 216 S
> CCP .COM 4K 25 RS
> CHN31 .COM 2K 9 RS
> CHN31 .DOC 14K 100
> CLS .COM 2K 1 S
> CLS .TXT 4K 17
> CLS .Z80 4K 29
> CMP .COM 2K 10 RS
> COMP .COM 8K 56 RS
> CPM3-OK .COM 46K 357 RS
> CPM3 .COM 46K 357
> CPM3WS4 .Z80 2K 10
> CRC .COM 4K 25 RS
> CRCBUILD.COM 14K 105 S
> CRCHECK .COM 10K 80 S
> CRCKLIST.CRC 4K 29
> DF .COM 2K 9 S
> DF .TXT 2K 6
> DF .Z80 12K 94
> DIFF .COM 10K 78 RS
> DISKS .TXT 2K 14
> DU-V86 .COM 8K 59 RS
> DU-V86 .DOC 14K 100
> E .COM 2K 1 RS
> FF .COM 2K 13 S
> FF .TXT 2K 11
> FF .Z80 28K 222
> FLIP .C 4K 23
> FLIP .COM 14K 102 S
> FLIP .TXT 2K 4
> I .COM 4K 22 RS
> II .COM 4K 24 RS
> INFO .TXT 4K 27
> KTT .COM 2K 1 S
> KTT .Z80 2K 7
> L80 .COM 12K 84 RS
> LC .COM 6K 48 RS
> LIB80 .COM 6K 40 RS
> LINKZ .COM 6K 47 RS
> LU .C 20K 149
> LU .COM 20K 152 S
> LU11 .TXT 2K 7
> M80 .COM 20K 157 RS
> MAKE .COM 32K 255 RS
> MAKE .DOC 6K 37
> MERA .COM 2K 1 RS
> MMUPRINT.COM 2K 1 RS
> MOUNT .COM 2K 1 S
> MOUNT .Z80 2K 8
> NSWP .COM 12K 92 S
> NSWP .DOC 30K 233
> PAUSE .COM 2K 1 RS
> PIP .COM 10K 75 RS
> PMARC .COM 12K 81 RS
> PMASET .COM 12K 88 RS
> PMCAT .COM 8K 50 RS
> PMEXE2 .COM 2K 12 RS
> PMEXT .COM 14K 101 RS
> PMSET .COM 4K 25 RS
> PMSFX2 .COM 4K 17 RS
> PROFILE .SUB 2K 9
> R .COM 4K 32
> RESETDSK.COM 2K 1 RS
> RESETDSK.Z80 2K 2
> RW .TXT 2K 13
> S .COM 12K 92 RS
> SENDUUE .COM 2K 3 RS
> SUB .COM 4K 22 RS
> SUBMIT .COM 6K 42 RS
> SYS .COM 2K 1 RS
> SYS .Z80 2K 12
> T .SUB 2K 1
> TABS6 .COM 2K 16 RS
> TABS6 .DOC 4K 28
> TEST .SUB 2K 1
> TOUCH .COM 16K 124 RS
> TOUCH .DOC 2K 1
> UNARC .COM 6K 37 RS
> UNIXMAKE.MAN 18K 137
> UNLOAD .COM 2K 12 RS
> W .COM 6K 34
> WS .COM 8K 53 RS
> WS .OVR 52K 413 RS
> WSHELP .OVR 26K 202 RS
> WSINDEX .XCL 2K 12 RS
> WSMSGS .OVR 14K 105 RS
> WSPRINT .OVR 150K 1193 RS
> WSSHORT .OVR 2K 4 RS
> Z80ASM .COM 26K 196 RS
> Z80ASM .DOC 8K 50
> ZSID .COM 10K 80 RS
> 96 Files occupying 1004K, 3060K Free.
>
>
>
> 1048704 Aug 22 2020 CPM3_SYS.ydsk
> No good directory listing
>
>
>
> 262272 Aug 22 2020 test-utils-1.10.ydsk
>
> $ cpmls -f yaze256 -T raw,yaze256 -D test-utils-1.10.ydsk
> Name Bytes Recs Attr update create
> ------------ ------ ------ ---- ----------------- -----------------
> 0-README.1ST 2K 5
> CRCKLIST.CRC 2K 4
> PRELIM .COM 2K 9
> PRELIM .Z80 6K 43
> SAVAGE .COM 14K 110
> SAVAGE .PAS 2K 3
> SYS-OLD .AZM 2K 7
> SYS-OLD .COM 2K 1
> TIMEX .COM 2K 1
> Y .SUB 2K 1
> ZEXALL .COM 10K 68
> ZEXALL .Z80 40K 315
> ZEXDOC .COM 10K 68
> ZEXDOC .Z80 40K 315
> 14 Files occupying 24K, 1992K Free.
>
>
>
> 4194432 Mar 17 2020 BOOT_UTILS_windows.ydsk
>
> $ cpmls -f yaze512 -T raw,yaze512 -D BOOT_UTILS_windows.ydsk
> Name Bytes Recs Attr update create
> ------------ ------ ------ ---- ----------------- -----------------
> 0-INHALT.TXT 2K 2
> 0-README.1ST 4K 26
> 3DIR .COM 32K 242 RS
> 3ERASE .COM 4K 27 RS
> 3SETDEF .COM 2K 14 RS
> ARC .COM 28K 216 S
> CCP .COM 4K 25 RS
> CHN31 .COM 2K 9 RS
> CHN31 .DOC 14K 100
> CLS .COM 2K 1 S
> CLS .TXT 4K 17
> CLS .Z80 4K 29
> CMP .COM 2K 10 RS
> COMP .COM 8K 56 RS
> CPM3-OK .COM 46K 357 RS
> CPM3 .COM 46K 357
> CPM3WS4 .Z80 2K 10
> CRC .COM 4K 25 RS
> CRCBUILD.COM 14K 105 S
> CRCHECK .COM 10K 80 S
> CRCKLIST.CRC 4K 29
> DF .COM 2K 9 S
> DF .TXT 2K 6
> DF .Z80 12K 94
> DIFF .COM 10K 78 RS
> DISKS .TXT 2K 14
> DU-V86 .COM 8K 59 RS
> DU-V86 .DOC 14K 100
> E .COM 2K 1 RS
> FF .COM 2K 13 S
> FF .TXT 2K 11
> FF .Z80 28K 222
> FLIP .C 4K 23
> FLIP .COM 14K 102 S
> FLIP .TXT 2K 4
> I .COM 4K 22 RS
> II .COM 4K 24 RS
> INFO .TXT 4K 27
> KTT .COM 2K 1 S
> KTT .Z80 2K 7
> L80 .COM 12K 84 RS
> LC .COM 6K 48 RS
> LIB80 .COM 6K 40 RS
> LINKZ .COM 6K 47 RS
> LU .C 20K 149
> LU .COM 20K 152 S
> LU11 .TXT 2K 7
> M80 .COM 20K 157 RS
> MAKE .COM 32K 255 RS
> MAKE .DOC 6K 37
> MERA .COM 2K 1 RS
> MMUPRINT.COM 2K 1 RS
> MOUNT .COM 2K 1 S
> MOUNT .Z80 2K 8
> NSWP .COM 12K 92 S
> NSWP .DOC 30K 233
> PAUSE .COM 2K 1 RS
> PIP .COM 10K 75 RS
> PMARC .COM 12K 81 RS
> PMASET .COM 12K 88 RS
> PMCAT .COM 8K 50 RS
> PMEXE2 .COM 2K 12 RS
> PMEXT .COM 14K 101 RS
> PMSET .COM 4K 25 RS
> PMSFX2 .COM 4K 17 RS
> PROFILE .SUB 2K 9
> R .COM 4K 32
> RESETDSK.COM 2K 1 RS
> RESETDSK.Z80 2K 2
> RW .TXT 2K 13
> S .COM 12K 92 RS
> SENDUUE .COM 2K 3 RS
> SUB .COM 4K 22 RS
> SUBMIT .COM 6K 42 RS
> SYS .COM 2K 1 RS
> SYS .Z80 2K 12
> T .SUB 2K 1
> TABS6 .COM 2K 16 RS
> TABS6 .DOC 4K 28
> TEST .SUB 2K 1
> TOUCH .COM 16K 124 RS
> TOUCH .DOC 2K 1
> UNARC .COM 6K 37 RS
> UNIXMAKE.MAN 18K 137
> UNLOAD .COM 2K 12 RS
> W .COM 6K 34
> WS .COM 8K 53 RS
> WS .OVR 52K 413 RS
> WSHELP .OVR 26K 202 RS
> WSINDEX .XCL 2K 12 RS
> WSMSGS .OVR 14K 105 RS
> WSPRINT .OVR 150K 1193 RS
> WSSHORT .OVR 2K 4 RS
> Z80ASM .COM 26K 196 RS
> Z80ASM .DOC 8K 50
> ZSID .COM 10K 80 RS
> 96 Files occupying 1004K, 3060K Free.
>
>
>
> 262272 Jun 28 2016 disksort.ydsk
>
> $ cpmls -f yaze256 -T raw,yaze256 -D disksort.ydsk
> Name Bytes Recs Attr update create
> ------------ ------ ------ ---- ----------------- -----------------
> 0-README.1ST 2K 6 12-Mar-2005 22:24
> 1-README.1ST 8K 50 12-Mar-2005 22:24
> CCZ .COM 46K 355 R 12-Mar-2005 22:24
> CRCKLIST.CRC 2K 4 12-Mar-2005 22:37
> D .SUB 2K 1 12-Mar-2005 22:24
> DD .SUB 2K 1 12-Mar-2005 22:24
> DDD .SUB 2K 1 12-Mar-2005 22:24
> DISKSORT.MAK 2K 16 12-Mar-2005 22:24
> LIESMICH.1ST 8K 55 12-Mar-2005 22:24
> MYLIB .REL 8K 57 R 12-Mar-2005 22:24
> STDIO .H 2K 5 30-Dec-1977 22:00
> XXXMAIN .REL 2K 3 R 30-Dec-1977 22:00
> 12 Files occupying 18K, 1998K Free.
>
>
>
> 524416 May 15 2016 turbo-modula-2.ydsk
>
> $ cpmls -f yaze512 -T raw,yaze512 -D turbo-modula-2.ydsk
> Name Bytes Recs Attr update create
> ------------ ------ ------ ---- ----------------- -----------------
> 0-README.1ST 2K 10
> AGL .LIB 18K 136
> BENCH .MOD 2K 7
> BIRTHDAY.COM 20K 148
> BIRTHDAY.MOD 4K 25
> BOXLIB .DEF 2K 6
> BOXLIB .MOD 4K 21
> BOXTEST .MOD 2K 9
> BTREE .MOD 8K 57
> CASE .MOD 10K 74
> COMPILE .MCD 14K 105 R
> CPM .DEF 2K 2
> CPM .MOD 2K 6
> CRC3 .MOD 4K 21
> CRC32 .DEF 4K 24
> CRC32 .Z80 14K 101
> CRC3216 .DEF 4K 28
> CRC3216 .Z80 14K 109
> CRCKLIST.CRC 4K 19
> CRCX .MOD 2K 16
> CROSS1 .MOD 4K 29
> CROSS2 .MOD 16K 122
> DATUM .DEF 2K 2
> DATUM .REL 2K 4
> DAYS .DEF 2K 7
> DAYS .MOD 4K 18
> DT .MOD 2K 2
> ERRMSGS .OVR 4K 27 R
> FORWARD .MOD 2K 2
> GEBURTS .MOD 2K 13
> GENZ80 .MCD 16K 117 R
> HELLO .MOD 2K 1
> INSTM2 .COM 26K 195 R
> INSTM2 .DTA 6K 35 R
> INSTM2 .MSG 6K 35 R
> LIBRARY .MCD 4K 30 R
> LINK .MCD 6K 39 R
> M2 .COM 24K 186 R
> M2 .KTT 4K 19
> M2 .OVR 28K 221 R
> MODULA-2.RAS 8K 49
> MODULA2 .KWD 2K 4
> PRIME .MOD 2K 9
> PROFILE .MCD 2K 9 R
> READ .ME 2K 8
> REL .MCD 6K 44 R
> SHELL .MCD 8K 49 R
> STRTEXTS.MOD 2K 13
> SYSLIB .LIB 34K 260 R
> TAGE .DEF 2K 7
> TAGE .MOD 2K 16
> TERMATT .DEF 2K 16
> TERMATT .MOD 8K 51
> TESTC321.MOD 4K 21
> TESTCRC .MOD 2K 14
> TOPSORT .MOD 4K 17
> WDEMO .MOD 6K 36
> WINDOWS .DEF 10K 68
> WINDOWS .MOD 20K 155
> Z80DEMO .MOD 2K 4
> Z80STUFF.DEF 2K 2
> Z80STUFF.MCD 2K 2
> Z80STUFF.SYM 2K 1
> Z80STUFF.Z80 2K 2
> ZDEMO .MOD 2K 6
> 65 Files occupying 84K, 3980K Free.
>
>
>
> 2097280 Apr 25 2016 hi-c-z280-compiler.ydsk
>
> $ cpmls -f yaze2m -T raw,yaze2m -D hi-c-z280-compiler.ydsk
> Name Bytes Recs Attr update create
> ------------ ------ ------ ---- ----------------- -----------------
> $EXEC .COM 2K 9 R
> 0-README.1ST 2K 1
> ASSERT .H 2K 4
> C .COM 20K 152 R
> C280 .COM 20K 155 R
> CC .C 14K 97
> CC .COM 20K 152
> CGEN .COM 44K 346 R
> CONIO .H 2K 5
> CPM .H 4K 28
> CPP .COM 26K 203 R
> CRCKLIST.CRC 2K 16
> CREF .COM 18K 132 R
> CRTCPM .OBJ 2K 3
> CTYPE .H 2K 7
> DEBUG .COM 14K 106 R
> DEBUGMAN.TXT 14K 100
> DEHUFF .C 8K 55
> DEHUFF .COM 12K 94 R
> EXEC .H 2K 3
> FLOAT .H 4K 17
> HELLO .C 2K 4
> HITECH .H 2K 16
> LIB280C .LIB 64K 498
> LIB280F .LIB 26K 200
> LIBC .LIB 60K 477
> LIBF .LIB 26K 199
> LIBR .COM 18K 141 R
> LIMITS .H 2K 6
> LINK .COM 30K 235 R
> MATH .H 2K 4
> OBJTOHEX.COM 24K 191 R
> OPTIM .COM 28K 220 R
> OPTIMH .C 18K 141
> OPTIMH .COM 16K 118 R
> OPTIONS . 2K 6
> P1 .COM 40K 312 R
> READ .ME 2K 7
> RRTCPM .OBJ 2K 6
> SETJMP .H 2K 2
> SIGNAL .H 2K 9
> STAT .H 2K 6
> STDARG .H 2K 2
> STDDEF .H 2K 3
> STDIO .H 4K 20
> STDLIB .H 2K 8
> STRING .H 2K 10
> SYS .H 2K 8
> TIME .H 2K 7
> TST .C 2K 1
> UNIXIO .H 2K 6
> Z80DOC .TXT 296K 2367
> Z80READ .ME 2K 10
> ZAS .COM 38K 294 R
>
>
>
> 1048704 Feb 4 2015 kermit_szrz.ydsk
>
> $ cpmls -f yaze1m -T raw,yaze1m -D kermit_szrz.ydsk
> Name Bytes Recs Attr update create
> ------------ ------ ------ ---- ----------------- -----------------
> CRCKLIST.CRC 2K 3
> KERMIT .COM 30K 229
> MLOAD .COM 4K 22
> RZ .COM 6K 46
> RZSZ .FOR 2K 6
> SZ .COM 8K 61
> SZRZ .PMA 12K 85
> WADDR .TXT 2K 7
> 8 Files occupying 66K, 8094K Free.
>
>
>
> 262272 Feb 4 2015 mmu-utils.ydsk
>
> $ cpmls -f yaze256 -T raw,yaze256 -D mmu-utils.ydsk
> Name Bytes Recs Attr update create
> ------------ ------ ------ ---- ----------------- -----------------
> 0-README.1ST 2K 3
> CRCCPM .COM 20K 148
> CRCCPM .MOD 4K 21
> CRCKLIST.CRC 2K 5
> MISC .PMA 46K 367
> MMUCPM3 .COM 2K 2
> MMUCPM3 .Z80 6K 35
> MMUPRINT.COM 2K 1
> MMUPRINT.Z80 2K 4
> MMUSET .COM 2K 1
> MMUSET .Z80 4K 17
> MMUTEST .COM 2K 1
> MMUTEST .Z80 2K 15
> MMUTSEL .COM 2K 1
> MMUTSEL .Z80 2K 7
> UNLOAD .COM 2K 12
> YAZEBIOS.LIB 4K 20
> 17 Files occupying 26K, 1990K Free.
>
> Larry


Click here to read the complete article
Re: cpmtools bug?

<fb466332-7d18-4bd5-a6e6-5b5144739539n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2509&group=comp.os.cpm#2509

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:945:: with SMTP id w5mr16338113qkw.68.1620578901039;
Sun, 09 May 2021 09:48:21 -0700 (PDT)
X-Received: by 2002:aca:c30f:: with SMTP id t15mr15133637oif.145.1620578900777;
Sun, 09 May 2021 09:48:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news.uzoreto.com!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 9 May 2021 09:48:20 -0700 (PDT)
In-Reply-To: <9a047101-ecdc-4a8c-82cc-cda053075672n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<1049434b-5374-420b-b6de-b3e7429a08bdn@googlegroups.com> <826c400b-6f4f-4afa-9ccf-9a39d30a6840n@googlegroups.com>
<9a047101-ecdc-4a8c-82cc-cda053075672n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fb466332-7d18-4bd5-a6e6-5b5144739539n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Sun, 09 May 2021 16:48:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: ldkr...@gmail.com - Sun, 9 May 2021 16:48 UTC

Richard,
cpmcp appears to work fine for me. I picked one file at randon that was over 2K.

$ cpmcp -f yaze512 -T raw,yaze512 BOOT_UTILS_windows.ydsk 0:Z80ASM.DOC .

Date: Sun, 9 Jun 2002 18:54:46 +0200
From: Andreas Gerlich <development@yaze-ag.de>
To: vpereira@modulo.com.br
Subject: Re: How can i use the z80asm compiler ?
Reply-To: yaze-ag@z80.de
User-Agent: Mutt/1.2i
Content-Length: 6175

On Wed, May 29, 2002 at 11:42:30PM -0300, vpereira@modulo.com.br wrote:
> Hi,i'm trying to use your z80 emulator to compile and run
> a z80 assembly code. I saw a z80asm compiler in your emulator but i can't
> compile,it has'nt a documentation.i'm gonna read the source code but if
> you can help me.. it would be nice.
> thnkz in advance
> Victor Pereira

Hello Victor,

....

You want to know how you can use the CP/M-programm Z80ASM inside the
yaze-ag Emulator.

Bevore I discuss this I want to say you that you have to transfere
your assembler-source to a CP/M-disk which is used by the emulator.
You can use the cdm utility to transfere between a CP/M-Disk and unix.
Cdm (CP/M disk manager) is part of yaze-ag.
See "man cdm" to look to the commands and use the help command
about the "cp" command inside cdm ("help cp") to see how you can copy
and convert Unix files to CP/M files.

The Z80ASM:

Z80ASM is a comercial product by SLR.
I load the Z80ASM from www.retroarchive.org[/cpm/lang/lang.htm] there is
many commercial software for CP/M-80. There you find also Z80ASM in the file
SLRASM.ZIP. Inside the archive there is also the CONFIG.COM for the Z80ASM.COM.
There is also the archive SLR_MAN.ZIP with the dokumentation for Z80ASM.

I have a documentation for the SLR180+ (a further development of Z80ASM) but
the most options are idendically with the Z80ASM.

The assembler uses the source file format which is used also by
M80 (Microsoft).

Syntax of Z80ASM:

Z80ASM [filename][/options][,[filename][/options][,[filename][/op]]]]

Command line options are used to modify the default operating
characteristics of Z80ASM.

SLASH OPTION SUMMARY:

A : absolute mode. Output file is COM.

C : default output to the console

D : don't do LOWER to UPPER case conversion.

E : execute LOWER to UPPER case conversion.

F : selects full listing (2 passes through source)

H : generate HEX file as output

K : kill all console I/O and detach

L : list output partial (1 pass through source).

M : generate microsoft rel file as output

N : new OPTION byte.

P : enables output to the list device.

R : generate standard rel (SLR format) file as output.

S : generate alphabetized symbol table.

T : input time and date string

U : declares undefined symbols as external.

X : generates cross-reference.

Y : disable cross-reference

6 : selects M-Rel output, 6 significant.

7 : selects M-Rel output, 7 significant.

Some options (long form):

A The A option selects absolute mode operation and a
default output file type of COM.

F The F option selects FULL listing mode. This option
forces Z80 ASM into 2-pass mode, generating a
listing output on the second pass to the appropriate
device. Note that by default the disk driver is enabled.

H The H option selects absolute mode and binary output
type compatible with the Intel HEX format.
This output may be directed directly to the CON or
LST devices for output straight to an ICE or PROM
programmer.

L The L option selects one-pass listing mode. This
listing is similar to the F-mode fill listing
expect that forward references list as undefined
in the fenerated code columns. Note that by default
the output will go to the same disk drive as the
source file.

M The M option forcees relocatable mode. The binary
output file has the default extension REL, and the
format generated is compatible with the microsoft
releocatable format.

P The P option makes the PRINTER or CP/M list device
output driver the default output for listing-type
outputs. Any Listing, symbol table, or crossreference
output selected will be sent to the CP/M list device
by default.

R The R option is used to select relocatable operation.
The output file is REL, and the format generated is
SLR Format.

S The S option selects the generation of an alphabetized
symbol table. The output goes to the disk device by
default. The output contains symbol names, types, and
values. The number of symbols per line depends on the
selected page width and the number of significdant
characters selected.

T The T option is used to specify a time and date string
for use in generating listings. Any following characters
(up to 16) up to the next comma, semicolon or carriage
return are used as the time and date string. This option
must used as the last slash option.

U The U option (ignored in absolute mode) instructs Z80ASM
to automatically declare any UNDEFINED labels as externals
to beresolved by the linker. LOCAL labels CANNOT be external.

X The X option selects cross-reference generation. This
option forces two-pass mode (/F), and the output will
go on the end of the listing file, or optionally to a
seperate file (see config.com).

6 The 6 option performs an implied M option, and selects
6 significant character generation for globals and
externals. This overides the default selected by config.com.

7 The 7 option does the same as 6 expects that Z80 ASM will
generate 7 significant characters for globals and externals.

Z80ASM generate M-REL format (option 7) by default.

If you start Z80ASM without a file, it goes in an interactive mode. There
you can assemble also more than one assembler source. You stops the Z80ASM
with CTRL-C (or Strg-C).

So I hope this is enought and you can use Z80ASM.

If you use the microsoft rel format you can use the L80 (microsoft) or
the LINK.COM (Digital Research) to link to a COM-file.
See the Y.SUB on drive P: (BIOS-Souce files) for an example where I compile
all BIOS-files with Z80ASM and link all (with the linker of Digital Research
(LINK.COM)) to BNKBIOS3.SPR.
You find the syntax of LINK.COM with "HELP LINK" if the emulator runs.
I mean you find the syntax of L80 also on www.retroarchive.org.

If you have more questions write an email to me.
If you find an Error in yaze-ag, let me know about it.

Good luck :-)
Andreas Gerlich

--
Dipl.-Ing.(FH) Andreas Gerlich
email: yaze-ag@z80.de


Larry

Re: cpmtools bug?

<s7a1so$1obu$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2511&group=comp.os.cpm#2511

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: Re: cpmtools bug?
Date: Mon, 10 May 2021 11:22:34 +1000
Organization: Aioe.org NNTP Server
Lines: 31
Message-ID: <s7a1so$1obu$1@gioia.aioe.org>
References: <s752uq$ak4$1@gioia.aioe.org>
<dc486fd1-375d-4e7b-b846-3a9634119925n@googlegroups.com>
NNTP-Posting-Host: xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Mon, 10 May 2021 01:22 UTC

On 10/05/2021 00:54, rwd...@gmail.com wrote:
> On Saturday, 8 May 2021 at 05:10:07 UTC+1, dxforth wrote:
>> I think there may be a bug in cpmtools.
>>
>> For a disk images where DSM = 255 (total disk blocks = 256
>> e.g. YAZE 512K) cpmtools appears to be reading directory block
>> numbers as 16-bit values rather than 8-bits. This results in
>> an 'Attempting to access block beyond end of disk' error.
>>
>> I'm using this version of cpmtools:
>>
>> http://www.cpm8680.com/cpmtools/
>>
>> though a 2008 binary I had displayed the same problem
>
> I am trying it under Windows against Turbo-Modula-2.ydsk
> I get the error message that you refer to with sector = 512 with the Wild Turkey flavour of cpmtools (cpmcp). If I use CpmtoolsGUI I get the error message "Assertion failed: blockno<d->size, filecpmfs.c,line 278
> If I change diskdefs to sector = 511 I get no error with either version of cpmtools.
>
> This appears to confirm your bug report.
>
> I tried it on my rpi linux and strangely not getting cpmls to work with either definition in dskdefs. I am sure cpmls is picking up the right diskdefs. Something for another day.

I've only tried cpmcp and cpmls. The latter won't report an error since
it only lists the directory AFAIK.

blocks = 256 is the highest number of disk blocks CP/M can handle and still
use 8-bit numbers in the directory entries i.e. 0-255. I suspect cpmtools
is getting confused on this 'corner case'. Since it would rare for a real
disk format to result in blocks=256 (DSM 255) it's likely the problem went
unnoticed.

Re: cpmtools bug?

<s7a3jh$a39$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2512&group=comp.os.cpm#2512

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: Re: cpmtools bug?
Date: Mon, 10 May 2021 11:51:47 +1000
Organization: Aioe.org NNTP Server
Lines: 31
Message-ID: <s7a3jh$a39$1@gioia.aioe.org>
References: <s752uq$ak4$1@gioia.aioe.org>
<85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org>
<621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
NNTP-Posting-Host: xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Mon, 10 May 2021 01:51 UTC

On 9/05/2021 22:17, ldkr...@gmail.com wrote:
> dxforth,
> I'm not finding any 512 Kbyte images. I just downloaded all three *.ydsk images and I only have
> larry@debian:~/Downloads/yaze$ ls -alt *.ydsk
> -rw-r--r-- 1 larry larry 262272 May 9 07:10 testdsk.ydsk
> -rw-r--r-- 1 larry larry 1048704 May 9 06:07 z80asm.ydsk
> -rw-r--r-- 1 larry larry 1048704 May 9 06:03 wordstar400.ydsk
>
> Can you point me to a 512 Kbyte image? I'd like to work on the same image you are using.

The YAZE distribution I used:

yaze-ag-2.50.0-rc3-x86_32bit-generic.exe

It included these 512K images:

bios3.ydsk
turbo-modula-2.ydsk
unixlike.ydsk

>
> I see you have also added the OFFSET 128 and SECTRK 8 stanzas.

OFFSET=128 is to bypass the ydsk image header - at least I hope that's
what OFFSET is for. Unfortunately cpmtools makes little effort to document
entries in a diskdef or explain how it uses them.

There was no particular reason for my choice of 'seclen' 'tracks' 'sectrk' -
only that they should combine to produce a disk capacity of 256, 512, 1M,
2M and 4M blocks respectively. AFAIK only when BOOTTRK <> 0 would
'seclen' and 'sectrk' be critical.

Re: cpmtools bug?

<f6200cb2-0cd5-48af-a6a3-adae454cd5a7n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2513&group=comp.os.cpm#2513

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:aed:210f:: with SMTP id 15mr6163625qtc.149.1620645622167;
Mon, 10 May 2021 04:20:22 -0700 (PDT)
X-Received: by 2002:a05:6830:3495:: with SMTP id c21mr20613967otu.53.1620645621869;
Mon, 10 May 2021 04:20:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Mon, 10 May 2021 04:20:21 -0700 (PDT)
In-Reply-To: <s7a3jh$a39$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<s7a3jh$a39$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f6200cb2-0cd5-48af-a6a3-adae454cd5a7n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Mon, 10 May 2021 11:20:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: ldkr...@gmail.com - Mon, 10 May 2021 11:20 UTC

dxforth,
Here is an excerpt from my newdefs.doc fie that explains the definitions and how they are calculated.

New 22DISK definitions require the following information:
DENSITY xx,xx
CYLINDERS x
SIDES xx
SECTORS x,xxxx
SKEW x
SIDE1 0 x,x1,x2,x3, , ,xn
SIDE2 x x,x1,x2,x3, , ,xn
ORDER x
BSH x
BLM x
EXM x
DSM x
DRM x
AL0 x
AL1 x
OFS x (or SOFS x)
COMPLEMENT (unlikely)

New LIBDSK definitions require the following information:

[title]
description = DESC The description of the format as shown by (for example) dskform–help.
sidedness =TREATMENT How a double-sided disk is handled. This can either be alt
(sides alternate – used by most PC-hosted operating systems),
outback (use side 0 tracks 0-79, then side 1 tracks 79-0 – used
by 144FEAT CP/M disks), or outout (use side 0 tracks 0-79, then
side 1 tracks 0-79 – used by some Acorn formats). If the disk is
single-sided, this parameter can be omitted.
cylinders = COUNT Sets the number of cylinders (usually 40 or 80)..
heads = COUNT Sets the number of heads (usually 1 or 2 for single- or double- sided).
sectors = COUNT Sets the number of sectors per track.
secbase = NUMBER Sets the first sector number on a track. Usually 1; some Acorn formats use 0.
secsize = COUNT Sets the size of a sector in bytes. This should be a power of 2.
datarate = VALUE Sets the rate at which the disk should be accessed. This is: HD, DD, SD or ED.
rwgap = VALUE Sets the read/write gap.
fmtgap = VALUE Sets the format gap.
fm = Y or N Sets the recording mode - Y for FM, N for MFM.
multitrack = Y or N Sets multitrack mode.
skipdeleted = Y or N Sets whether to skip deleted data.

The LIBDSK Data rate will be one of:
RATE_HD, /* Rate for High-density disc - 1.2Mb in 5.25" 96 tpi drive, or 1.44Mb in 3.5" 96 tpi drive */
RATE_DD, /* Rate for Double-density disc - 360k in 5.25" 48 tpi drive, or 720K in 3.5" 48 tpi drive */
RATE_SD, /* Rate for Double-density disc - 180k in 5.25" 48 tpi drive, or 360k in 3.5" 48 tpi drive */
RATE_ED /* Data rate for 2.8Mb 3.5" in 3.5" 96 tpi drive */

New CPMTOOLS definitions require the following information:

diskdef title
seclen xxx #= Sectors xx,1024
tracks xx #= (Cylinders * Sides) = 80*2 = 160
sectrk xx #= Sectors 5,xxx
blocksize xxxx #= (128*(BLM+1)) = 2048
maxdir xxx #= (DRM+1) = 256
skew x #= may be 1 thru 6, or so
/* OFS is the number of tracks to the start of the Directory. In the case of 22DISK's SOFS, it's the number of SECTORS to
the start of the Directory. For cpmtools the OFFSET stanza can be used for the actual number by Decimal Bytes to the
start of the directory. But, the boottrk stanza must be ZERO for the offset to be valid.
example:
offset 16384
boottrk 0
*/
boottrk x #= OFS = 2
os x.x #= 2.2, or 2, or 3
/* Note: ABSOLUTELY NO COMMENT can be placed on the os stanza. cpmtools will barf. */
end

Larry

Re: cpmtools bug?

<aea811e7-cae0-4057-8661-658d93f1e750n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2514&group=comp.os.cpm#2514

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:481:: with SMTP id 1mr21904423qkr.46.1620646436730; Mon, 10 May 2021 04:33:56 -0700 (PDT)
X-Received: by 2002:a9d:6f90:: with SMTP id h16mr3659018otq.8.1620646436294; Mon, 10 May 2021 04:33:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Mon, 10 May 2021 04:33:56 -0700 (PDT)
In-Reply-To: <f6200cb2-0cd5-48af-a6a3-adae454cd5a7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com> <s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com> <s7a3jh$a39$1@gioia.aioe.org> <f6200cb2-0cd5-48af-a6a3-adae454cd5a7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aea811e7-cae0-4057-8661-658d93f1e750n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Mon, 10 May 2021 11:33:56 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 105
 by: ldkr...@gmail.com - Mon, 10 May 2021 11:33 UTC

Here are the two .ydsk files I missed downloading:

[code]

524416 Aug 23 2020 bios3.ydsk

$ cpmls -f yaze512 -T raw,yaze512 -D bios3.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-README.1ST 6K 40
0-ZPM .TXT 2K 2
3ERASE .COM 4K 27
AUTOTOG .COM 2K 4
B .SUB 2K 2
BDOS3 .SPR 10K 77
BIOSKRNL.Z80 20K 150
BNKBDOS3.SPR 14K 106
BNKBIOS3.SPR 30K 234
BOOTSYS .COM 2K 13
BOOTSYS .Z80 34K 264
CLEAN .SUB 2K 2
COPYING . 18K 144
CPM3-SLR.LIB 6K 37
CPM3 .SYS 44K 344
CPMLDR .SUB 2K 4
CRC .COM 4K 25
CRCKLIST.CRC 2K 12
D .SUB 2K 1
G .SUB 2K 2
GENCPM .COM 22K 166
GENCPM .DAT 4K 19
GENCPM .OK 4K 19
H .SUB 2K 2
IFNEW .COM 2K 4
LINKDR .COM 16K 123
MAKESYM .COM 2K 9
MAKESYM .DOC 2K 15
MERA .COM 2K 1
MMU .Z80 8K 59
P .SUB 2K 1
RESBDOS3.SPR 2K 16
RF4 .SUB 2K 1
SCB .Z80 4K 24
SYS .Z80 2K 12
SYSDEF .LIB 2K 14
Y .SUB 2K 7
YAZEBIOS.LIB 4K 21
YCT .Z80 4K 21
YDRVTBL .Z80 8K 53
ZPM3N11 .PMA 42K 327
41 Files occupying 58K, 4006K Free.

524416 Feb 4 2015 unixlike.ydsk

$ cpmls -f yaze512 -T raw,yaze512 -D unixlike.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-README.1ST 2K 1
BOOZ .COM 16K 116
CCT .COM 2K 15
CH .COM 14K 101
CMP .COM 4K 30
COMMON .COM 10K 74
CRCKLIST.CRC 2K 13
CTYPE .COM 2K 6
CTYPE .DOC 2K 16
DIF22 .C 18K 130
DIF22 .COM 10K 78
DIF22 .DOC 2K 6
DIFDOC .DOC 6K 38
FIELD .COM 10K 75
FIND .COM 14K 109
GREP .COM 18K 138
HCAT .COM 10K 72
LPR .COM 10K 66
LS .COM 8K 61
LS .DOC 2K 13
MERGE .COM 8K 62
MERGE .DOC 2K 7
MORE .COM 18K 130
MORE12 .DOC 8K 56
PG .COM 10K 65
PREP .COM 10K 78
RZ .COM 6K 46
SORT .COM 14K 98
SORT .DOC 2K 8
SORT2 .COM 10K 76
SSED2 .COM 12K 81
SZ .COM 8K 61
TR .COM 10K 79
UNIQ .COM 10K 66
UNIXLIKE.FOR 2K 3
UTOOL .MAN 16K 119
UTOOL2 .MAN 8K 49
UUDECODE.COM 12K 82
UUENCODE.COM 10K 80
VSPLIT .COM 10K 71
WC .COM 6K 38
ZCAL .COM 2K 10
42 Files occupying 64K, 4000K Free.
[/code]

Larry

Re: cpmtools bug?

<FNadnf6bSPe0aAT9nZ2dnUU7-efNnZ2d@giganews.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2518&group=comp.os.cpm#2518

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc3.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 10 May 2021 22:08:25 -0500
Sender: Dennis Boone <drb@yagi.h-net.org>
From: drb...@ihatespam.msu.edu (Dennis Boone)
Subject: Re: cpmtools bug?
Newsgroups: comp.os.cpm
References: <s752uq$ak4$1@gioia.aioe.org> <dc486fd1-375d-4e7b-b846-3a9634119925n@googlegroups.com> <s7a1so$1obu$1@gioia.aioe.org>
User-Agent: tin/2.4.4-20191224 ("Millburn") (FreeBSD/12.2-RELEASE-p4 (amd64))
Message-ID: <FNadnf6bSPe0aAT9nZ2dnUU7-efNnZ2d@giganews.com>
Date: Mon, 10 May 2021 22:08:25 -0500
Lines: 11
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-gFgNEebjMEzvJ0uu/kzs7vV96D9M5EfWSOyzsI5jP+5rQYd2RjdSmPFZaklt89bm7UwCewNyfmgeYam!j9izu8RrSa4y3aAwTDCNrUayJTax27v10vo1a/V6HrC55l9zsXk8LP7K1/TcPOwdQQmo2DQ=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1596
X-Received-Bytes: 1839
 by: Dennis Boone - Tue, 11 May 2021 03:08 UTC

> blocks = 256 is the highest number of disk blocks CP/M can handle and
> still use 8-bit numbers in the directory entries i.e. 0-255. I suspect
> cpmtools is getting confused on this 'corner case'. Since it would rare
> for a real disk format to result in blocks=256 (DSM 255) it's likely the
> problem went unnoticed.

This cpmtools, 8/16 and DSM 255 thing sounds very familiar. I
think this has been discussed sometime in the last few years,
but I can't seem to find the posts right now.

De

Re: cpmtools bug?

<s7ctah$1848$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2519&group=comp.os.cpm#2519

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: Re: cpmtools bug?
Date: Tue, 11 May 2021 13:22:56 +1000
Organization: Aioe.org NNTP Server
Lines: 21
Message-ID: <s7ctah$1848$1@gioia.aioe.org>
References: <s752uq$ak4$1@gioia.aioe.org>
<85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org>
<621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<s7a3jh$a39$1@gioia.aioe.org>
<f6200cb2-0cd5-48af-a6a3-adae454cd5a7n@googlegroups.com>
NNTP-Posting-Host: xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Tue, 11 May 2021 03:22 UTC

On 10/05/2021 21:20, ldkr...@gmail.com wrote:
> ...
> New CPMTOOLS definitions require the following information:
>
> diskdef title
> seclen xxx #= Sectors xx,1024
> tracks xx #= (Cylinders * Sides) = 80*2 = 160
> sectrk xx #= Sectors 5,xxx
> blocksize xxxx #= (128*(BLM+1)) = 2048
> maxdir xxx #= (DRM+1) = 256
> skew x #= may be 1 thru 6, or so
> /* OFS is the number of tracks to the start of the Directory. In the case of 22DISK's SOFS, it's the number of SECTORS to
> the start of the Directory. For cpmtools the OFFSET stanza can be used for the actual number by Decimal Bytes to the
> start of the directory. But, the boottrk stanza must be ZERO for the offset to be valid.

Thanks for that.

Would I be correct in assuming CPMTOOLS can't correctly handle disk images
such as Kaypro II ? IIRC Kaypro II miscalculated their DPB values,
allocating more blocks (AL0,1) to the directory than the DRM+1 required.
CPMTOOLS has only MAXDIR to tell it where the data blocks begin.

Re: cpmtools bug?

<s7ctbs$1848$2@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2520&group=comp.os.cpm#2520

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: Re: cpmtools bug?
Date: Tue, 11 May 2021 13:23:40 +1000
Organization: Aioe.org NNTP Server
Lines: 87
Message-ID: <s7ctbs$1848$2@gioia.aioe.org>
References: <s752uq$ak4$1@gioia.aioe.org>
<85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com>
<s77d69$nja$1@gioia.aioe.org>
<621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com>
<s7a3jh$a39$1@gioia.aioe.org>
<f6200cb2-0cd5-48af-a6a3-adae454cd5a7n@googlegroups.com>
<aea811e7-cae0-4057-8661-658d93f1e750n@googlegroups.com>
NNTP-Posting-Host: xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
Content-Language: en-GB
X-Mozilla-News-Host: news://nntp.aioe.org
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Tue, 11 May 2021 03:23 UTC

On 10/05/2021 21:33, ldkr...@gmail.com wrote:
> Here are the two .ydsk files I missed downloading:
>
> [code]
>
>
> 524416 Aug 23 2020 bios3.ydsk
>
> $ cpmls -f yaze512 -T raw,yaze512 -D bios3.ydsk
> Name Bytes Recs Attr update create
> ------------ ------ ------ ---- ----------------- -----------------
> 0-README.1ST 6K 40
> 0-ZPM .TXT 2K 2
> 3ERASE .COM 4K 27
> AUTOTOG .COM 2K 4
> B .SUB 2K 2
> BDOS3 .SPR 10K 77
> BIOSKRNL.Z80 20K 150
> BNKBDOS3.SPR 14K 106
> BNKBIOS3.SPR 30K 234
> BOOTSYS .COM 2K 13
> BOOTSYS .Z80 34K 264
> CLEAN .SUB 2K 2
> COPYING . 18K 144
> CPM3-SLR.LIB 6K 37
> CPM3 .SYS 44K 344
> CPMLDR .SUB 2K 4
> CRC .COM 4K 25
> CRCKLIST.CRC 2K 12
> D .SUB 2K 1
> G .SUB 2K 2
> GENCPM .COM 22K 166
> GENCPM .DAT 4K 19
> GENCPM .OK 4K 19
> H .SUB 2K 2
> IFNEW .COM 2K 4
> LINKDR .COM 16K 123
> MAKESYM .COM 2K 9
> MAKESYM .DOC 2K 15
> MERA .COM 2K 1
> MMU .Z80 8K 59
> P .SUB 2K 1
> RESBDOS3.SPR 2K 16
> RF4 .SUB 2K 1
> SCB .Z80 4K 24
> SYS .Z80 2K 12
> SYSDEF .LIB 2K 14
> Y .SUB 2K 7
> YAZEBIOS.LIB 4K 21
> YCT .Z80 4K 21
> YDRVTBL .Z80 8K 53
> ZPM3N11 .PMA 42K 327
> 41 Files occupying 58K, 4006K Free.

I confirm that on the Win version of cpmtools.

What fails on my cpmtools is:

D:\cpmtools>cpmcp -f yaze512 bios3.ydsk 0:*.* dest

cpmcp: can not read 00cpm3.sys (Attempting to access block beyond end of disk)
cpmcp: can not read 003erase.com (Attempting to access block beyond end of disk)
cpmcp: can not read 00crc.com (Attempting to access block beyond end of disk)
cpmcp: can not read 00gencpm.com (Attempting to access block beyond end of disk)
cpmcp: can not read 00linkdr.com (Attempting to access block beyond end of disk)
cpmcp: can not read 000-readme.1st (Attempting to access block beyond end of disk)
cpmcp: can not read 00bdos3.spr (Attempting to access block beyond end of disk)
cpmcp: can not read 00bioskrnl.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00bnkbdos3.spr (Attempting to access block beyond end of disk)
cpmcp: can not read 00bnkbios3.spr (Attempting to access block beyond end of disk)
cpmcp: can not read 00bootsys.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00cpm3-slr.lib (Attempting to access block beyond end of disk)
cpmcp: can not read 00gencpm.dat (Attempting to access block beyond end of disk)
cpmcp: can not read 00gencpm.ok (Attempting to access block beyond end of disk)
cpmcp: can not read 00mmu.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00scb.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00yazebios.lib (Attempting to access block beyond end of disk)
cpmcp: can not read 00yct.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00ydrvtbl.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00zpm3n11.pma (Attempting to access block beyond end of disk)

It will however correctly extract files with a size of 1 block (2048 bytes) or
less.

So cpmls is reading the directory information correctly and calculating file
sizes correctly. The problem appears to be in (at least) cpmcp.

Re: cpmtools bug?

<s7cuhc$1j9i$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2521&group=comp.os.cpm#2521

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: Re: cpmtools bug?
Date: Tue, 11 May 2021 13:43:38 +1000
Organization: Aioe.org NNTP Server
Lines: 15
Message-ID: <s7cuhc$1j9i$1@gioia.aioe.org>
References: <s752uq$ak4$1@gioia.aioe.org>
<dc486fd1-375d-4e7b-b846-3a9634119925n@googlegroups.com>
<s7a1so$1obu$1@gioia.aioe.org>
<FNadnf6bSPe0aAT9nZ2dnUU7-efNnZ2d@giganews.com>
NNTP-Posting-Host: xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Tue, 11 May 2021 03:43 UTC

On 11/05/2021 13:08, Dennis Boone wrote:
> > blocks = 256 is the highest number of disk blocks CP/M can handle and
> > still use 8-bit numbers in the directory entries i.e. 0-255. I suspect
> > cpmtools is getting confused on this 'corner case'. Since it would rare
> > for a real disk format to result in blocks=256 (DSM 255) it's likely the
> > problem went unnoticed.
>
> This cpmtools, 8/16 and DSM 255 thing sounds very familiar. I
> think this has been discussed sometime in the last few years,
> but I can't seem to find the posts right now.

Interesting. If it can be confirmed the latest official release is
still failing on file copy, the info can be forwarded to Michael (or
whoever is the current maintainer).

Re: cpmtools bug?

<fc5bc4b9-ded0-455e-8024-93ef81801bd9n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2522&group=comp.os.cpm#2522

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:aed:210f:: with SMTP id 15mr11298107qtc.149.1620727218201;
Tue, 11 May 2021 03:00:18 -0700 (PDT)
X-Received: by 2002:a9d:d0f:: with SMTP id 15mr25380703oti.255.1620727217862;
Tue, 11 May 2021 03:00:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 11 May 2021 03:00:17 -0700 (PDT)
In-Reply-To: <s7cuhc$1j9i$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=192.30.164.110; posting-account=vgtDDgoAAAD79vzJigFqI2FioZJCfmjs
NNTP-Posting-Host: 192.30.164.110
References: <s752uq$ak4$1@gioia.aioe.org> <dc486fd1-375d-4e7b-b846-3a9634119925n@googlegroups.com>
<s7a1so$1obu$1@gioia.aioe.org> <FNadnf6bSPe0aAT9nZ2dnUU7-efNnZ2d@giganews.com>
<s7cuhc$1j9i$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fc5bc4b9-ded0-455e-8024-93ef81801bd9n@googlegroups.com>
Subject: Re: cpmtools bug?
From: ldkrae...@gmail.com (ldkr...@gmail.com)
Injection-Date: Tue, 11 May 2021 10:00:18 +0000
Content-Type: text/plain; charset="UTF-8"
 by: ldkr...@gmail.com - Tue, 11 May 2021 10:00 UTC

dxforth,
Looks like it's still a problem, as I'm using cpmtools 2.21 with libdsk 1.5.14 (libdsk 1.5.15 is the latest)
in Debian 9.x - 64 bit.

diskdef yaze512
# BSH 4 BLM 15 EXM 1 DSM 255 DRM 1023 AL0 0FFH AL1 0FFH OFS 0
seclen 128
tracks 4096
sectrk 8
blocksize 2048
maxdir 1024
skew 1
offset 128
boottrk 0
os 3
end

[yaze512]
description = yaze512 image
cylinders = 4096
heads = 1
secsize = 128
sectors = 8
secbase = 1
datarate = DD

$ cpmls -f yaze512 -T raw,yaze512 -D bios3.ydsk
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
0-README.1ST 6K 40
0-ZPM .TXT 2K 2
3ERASE .COM 4K 27
AUTOTOG .COM 2K 4
B .SUB 2K 2
BDOS3 .SPR 10K 77
BIOSKRNL.Z80 20K 150
BNKBDOS3.SPR 14K 106
BNKBIOS3.SPR 30K 234
BOOTSYS .COM 2K 13
BOOTSYS .Z80 34K 264
CLEAN .SUB 2K 2
COPYING . 18K 144
CPM3-SLR.LIB 6K 37
CPM3 .SYS 44K 344
CPMLDR .SUB 2K 4
CRC .COM 4K 25
CRCKLIST.CRC 2K 12
D .SUB 2K 1
G .SUB 2K 2
GENCPM .COM 22K 166
GENCPM .DAT 4K 19
GENCPM .OK 4K 19
H .SUB 2K 2
IFNEW .COM 2K 4
LINKDR .COM 16K 123
MAKESYM .COM 2K 9
MAKESYM .DOC 2K 15
MERA .COM 2K 1
MMU .Z80 8K 59
P .SUB 2K 1
RESBDOS3.SPR 2K 16
RF4 .SUB 2K 1
SCB .Z80 4K 24
SYS .Z80 2K 12
SYSDEF .LIB 2K 14
Y .SUB 2K 7
YAZEBIOS.LIB 4K 21
YCT .Z80 4K 21
YDRVTBL .Z80 8K 53
ZPM3N11 .PMA 42K 327
41 Files occupying 58K, 4006K Free.

$ cpmcp -f yaze512 -T raw,yaze512 bios3.ydsk 0:*.* ./bios3/
cpmcp: can not read 00cpm3.sys (Attempting to access block beyond end of disk)
cpmcp: can not read 003erase.com (Attempting to access block beyond end of disk)
cpmcp: can not read 00crc.com (Attempting to access block beyond end of disk)
cpmcp: can not read 00gencpm.com (Attempting to access block beyond end of disk)
cpmcp: can not read 00linkdr.com (Attempting to access block beyond end of disk)
cpmcp: can not read 000-readme.1st (Attempting to access block beyond end of disk)
cpmcp: can not read 00bdos3.spr (Attempting to access block beyond end of disk)
cpmcp: can not read 00bioskrnl.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00bnkbdos3.spr (Attempting to access block beyond end of disk)
cpmcp: can not read 00bnkbios3.spr (Attempting to access block beyond end of disk)
cpmcp: can not read 00bootsys.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00cpm3-slr.lib (Attempting to access block beyond end of disk)
cpmcp: can not read 00gencpm.dat (Attempting to access block beyond end of disk)
cpmcp: can not read 00gencpm.ok (Attempting to access block beyond end of disk)
cpmcp: can not read 00mmu.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00scb.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00yazebios.lib (Attempting to access block beyond end of disk)
cpmcp: can not read 00yct.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00ydrvtbl.z80 (Attempting to access block beyond end of disk)
cpmcp: can not read 00zpm3n11.pma (Attempting to access block beyond end of disk)

Larry

Re: cpmtools bug?

<CaCdnQBYcYHL4Qf9nZ2dnUU7-W2dnZ2d@giganews.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2523&group=comp.os.cpm#2523

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 11 May 2021 07:45:10 -0500
Subject: Re: cpmtools bug?
Newsgroups: comp.os.cpm
References: <s752uq$ak4$1@gioia.aioe.org> <85a955b2-2684-4f51-974d-696ab8daa2can@googlegroups.com> <s77d69$nja$1@gioia.aioe.org> <621b468e-d4fb-45c6-bb0c-c518ebb32cf7n@googlegroups.com> <s7a3jh$a39$1@gioia.aioe.org>
From: snhir...@gmail.com (Steven Hirsch)
Date: Tue, 11 May 2021 08:45:10 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <s7a3jh$a39$1@gioia.aioe.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <CaCdnQBYcYHL4Qf9nZ2dnUU7-W2dnZ2d@giganews.com>
Lines: 13
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-nN28Z92ff9MBSK8gm6XSlsgc3bPIJzcksxmnvmPP0pV7rKKiAotZotJfhPXO2MRPKXttmrrWF/333qC!WwGYgOrxiEV/zQK+wZ+bhDPPN11+hWC20QQq/Rlzm1G9aPz8CLySLGqidUaDSeRXKBb5Jea5sr1G
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1890
 by: Steven Hirsch - Tue, 11 May 2021 12:45 UTC

On 5/9/21 9:51 PM, dxforth wrote:
>>
>> I see you have also added the OFFSET 128 and SECTRK 8 stanzas.
>
> OFFSET=128 is to bypass the ydsk image header - at least I hope that's
> what OFFSET is for.  Unfortunately cpmtools makes little effort to document
> entries in a diskdef or explain how it uses them.

Cannot comment on the rest, but since I added the 'offset' keyword I can
confirm that's precisely the application it's intended for: skipping system
tracks that aren't a multiple of sector size and/or previous volumes in a
hard-disk image.

Re: cpmtools bug?

<s7f8c2$sf7$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2525&group=comp.os.cpm#2525

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: Re: cpmtools bug?
Date: Wed, 12 May 2021 10:43:48 +1000
Organization: Aioe.org NNTP Server
Lines: 7
Message-ID: <s7f8c2$sf7$1@gioia.aioe.org>
References: <s752uq$ak4$1@gioia.aioe.org>
<dc486fd1-375d-4e7b-b846-3a9634119925n@googlegroups.com>
<s7a1so$1obu$1@gioia.aioe.org>
<FNadnf6bSPe0aAT9nZ2dnUU7-efNnZ2d@giganews.com>
<s7cuhc$1j9i$1@gioia.aioe.org>
<fc5bc4b9-ded0-455e-8024-93ef81801bd9n@googlegroups.com>
NNTP-Posting-Host: xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: dxforth - Wed, 12 May 2021 00:43 UTC

On 11/05/2021 20:00, ldkr...@gmail.com wrote:
> dxforth,
> Looks like it's still a problem, as I'm using cpmtools 2.21 with libdsk 1.5.14 (libdsk 1.5.15 is the latest)
> in Debian 9.x - 64 bit.
>

Thanks for the confirmation. I've sent Michael an email.

Re: cpmtools bug?

<s7j0re$1v06$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=2535&group=comp.os.cpm#2535

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org.POSTED!not-for-mail
From: dxfo...@gmail.com (dxforth)
Newsgroups: comp.os.cpm
Subject: Re: cpmtools bug?
Date: Thu, 13 May 2021 21:00:00 +1000
Organization: Aioe.org NNTP Server
Lines: 8
Message-ID: <s7j0re$1v06$1@gioia.aioe.org>
References: <s752uq$ak4$1@gioia.aioe.org>
<dc486fd1-375d-4e7b-b846-3a9634119925n@googlegroups.com>
<s7a1so$1obu$1@gioia.aioe.org>
<FNadnf6bSPe0aAT9nZ2dnUU7-efNnZ2d@giganews.com>
<s7cuhc$1j9i$1@gioia.aioe.org>
<fc5bc4b9-ded0-455e-8024-93ef81801bd9n@googlegroups.com>
<s7f8c2$sf7$1@gioia.aioe.org>
NNTP-Posting-Host: xrnZ5uanw3pSzK+Ytx4Jfg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.10.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: dxforth - Thu, 13 May 2021 11:00 UTC

Michael has updated the sources to correct the problem but advises
it is untested. Here is the link:

http://www.moria.de/~michael/cpmtools/files/cpmtools-2.23-snapshot.tar.gz

Being a Win user, I'll leave it to the more experienced C & Linux
users to compile and verify. Should there still be issues, Michael
has requested a disk image and few files.

Pages:12
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor