Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Trespassers will be shot. Survivors will be SHOT AGAIN!


devel / comp.os.cpm / Re: Some updates to John Elliott's ZXCC

SubjectAuthor
* Some updates to John Elliott's ZXCCTony Nicholson
+* Re: Some updates to John Elliott's ZXCCfridtjof.ma...@gmail.com
|`- Re: Some updates to John Elliott's ZXCCTony Nicholson
`* Re: Some updates to John Elliott's ZXCCRussell Marks
 +* Re: Some updates to John Elliott's ZXCCUdo Munk
 |`- Re: Some updates to John Elliott's ZXCCRussell Marks
 `* Re: Some updates to John Elliott's ZXCCTony Nicholson
  `* Re: Some updates to John Elliott's ZXCCTony Nicholson
   `* Re: Some updates to John Elliott's ZXCCJohn Elliott
    `* Re: Some updates to John Elliott's ZXCCogd...@gmail.com
     `* Re: Some updates to John Elliott's ZXCCJohn Elliott
      `* Re: Some updates to John Elliott's ZXCCJohn Elliott
       `- Re: Some updates to John Elliott's ZXCCTony Nicholson

1
Some updates to John Elliott's ZXCC

<7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:6214:c69:: with SMTP id t9mr17628505qvj.28.1629419166989;
Thu, 19 Aug 2021 17:26:06 -0700 (PDT)
X-Received: by 2002:a9d:4c89:: with SMTP id m9mr14853548otf.255.1629419166629;
Thu, 19 Aug 2021 17:26:06 -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: Thu, 19 Aug 2021 17:26:06 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2403:5800:7600:3300:5c09:6ffb:b382:c142;
posting-account=5wnjpAoAAABrhNpKTP0a5hOqJUBnLT3d
NNTP-Posting-Host: 2403:5800:7600:3300:5c09:6ffb:b382:c142
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
Subject: Some updates to John Elliott's ZXCC
From: agn...@gmail.com (Tony Nicholson)
Injection-Date: Fri, 20 Aug 2021 00:26:06 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Tony Nicholson - Fri, 20 Aug 2021 00:26 UTC

For many years I've been using John Elliott's ZXCC - the CP/M
2/3 emulator for crosscompiling and running CP/M tools under
MS-DOS and Linux/Unix/macOS.

I've just found and fixed what I think are a couple of issues
with ZXCC when using my updated version of the HI-TECH
Z80 C compiler v3.09 (the latest version v3.09-9 is available
from https://github.com/agn453/HI-TECH-Z80-C ).

The fixes involve -

* Returning the correct error response for a BDOS Call RSX
(function 60) - for "non-existent RSX',
* Updating the processing of command-line options for zxc
that accept a filename or directory name, and
* Fixing the BDOS Read Console Buffer (function 10) so that
it accepts command buffers with a length >127 characters.

I've loaded ZXCC 0.5.7 from John's distribution site onto
GitHub and merged my changes. You can get them at

https://github.com/agn453/ZXCC

If anyone reading this has found (and fixed) any other issues
with ZXCC - I'd appreciate you raising them on GitHub or
replying to this thread.

Thanks.

Tony

Re: Some updates to John Elliott's ZXCC

<995e085a-b2ac-44ab-a833-2619693a259dn@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ae9:f44c:: with SMTP id z12mr7423704qkl.433.1629437658409;
Thu, 19 Aug 2021 22:34:18 -0700 (PDT)
X-Received: by 2002:a05:6808:bcf:: with SMTP id o15mr1787435oik.118.1629437658140;
Thu, 19 Aug 2021 22:34:18 -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: Thu, 19 Aug 2021 22:34:17 -0700 (PDT)
In-Reply-To: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:955f:2c00:e944:939f:55ad:a135;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:955f:2c00:e944:939f:55ad:a135
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <995e085a-b2ac-44ab-a833-2619693a259dn@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: fridtjof...@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Fri, 20 Aug 2021 05:34:18 +0000
Content-Type: text/plain; charset="UTF-8"
 by: fridtjof.ma...@gmail - Fri, 20 Aug 2021 05:34 UTC

On Thursday, August 19, 2021 at 8:26:07 PM UTC-4, Tony Nicholson wrote:
> For many years I've been using John Elliott's ZXCC - the CP/M
> 2/3 emulator for crosscompiling and running CP/M tools under
> MS-DOS and Linux/Unix/macOS.
>
> I've just found and fixed what I think are a couple of issues
> with ZXCC when using my updated version of the HI-TECH
> Z80 C compiler v3.09 (the latest version v3.09-9 is available
> from https://github.com/agn453/HI-TECH-Z80-C ).
>
> The fixes involve -
>
> * Returning the correct error response for a BDOS Call RSX
> (function 60) - for "non-existent RSX',
> * Updating the processing of command-line options for zxc
> that accept a filename or directory name, and
> * Fixing the BDOS Read Console Buffer (function 10) so that
> it accepts command buffers with a length >127 characters.
>
> I've loaded ZXCC 0.5.7 from John's distribution site onto
> GitHub and merged my changes. You can get them at
>
> https://github.com/agn453/ZXCC
>
> If anyone reading this has found (and fixed) any other issues
> with ZXCC - I'd appreciate you raising them on GitHub or
> replying to this thread.
>
> Thanks.
>
> Tony
Tony

From my am9511 -- see howto.txt

"Please note that there is an error in Zxcc -- in edops.h opcodes
0xed 0x70 and 0xed 0x71 are wrong: replace with

instr(0x70,8);
{unsigned char x;input(x);
store(hl,x);
}
endinstr;

instr(0x71,8);
{unsigned char x=fetch(hl);
tstates+=out(tstates,b,c,x);
}
endinstr;

Note that this has NO effect on running zxc, etc. Just using Zxcc
as an emulator driving i/o devices like am9511."

This has no effect on Zxcc usually... just if trying to do i/o (adding to the emulator).
Ran across this when integrating am9511 into Zxcc.

FredW

Re: Some updates to John Elliott's ZXCC

<c73986c1-675b-498f-9bed-79ef3de1ec44n@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:1910:: with SMTP id w16mr20545037qtc.227.1629520156106;
Fri, 20 Aug 2021 21:29:16 -0700 (PDT)
X-Received: by 2002:a54:4804:: with SMTP id j4mr5247957oij.85.1629520155809;
Fri, 20 Aug 2021 21:29:15 -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: Fri, 20 Aug 2021 21:29:15 -0700 (PDT)
In-Reply-To: <995e085a-b2ac-44ab-a833-2619693a259dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2403:5800:7600:3300:2c46:ecec:752b:ac28;
posting-account=5wnjpAoAAABrhNpKTP0a5hOqJUBnLT3d
NNTP-Posting-Host: 2403:5800:7600:3300:2c46:ecec:752b:ac28
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com> <995e085a-b2ac-44ab-a833-2619693a259dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c73986c1-675b-498f-9bed-79ef3de1ec44n@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: agn...@gmail.com (Tony Nicholson)
Injection-Date: Sat, 21 Aug 2021 04:29:16 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Tony Nicholson - Sat, 21 Aug 2021 04:29 UTC

On Friday, August 20, 2021 at 3:34:18 PM UTC+10, FredW wrote:

[snip]

> From my am9511 -- see howto.txt
>
> "Please note that there is an error in Zxcc -- in edops.h opcodes
> 0xed 0x70 and 0xed 0x71 are wrong: replace with
>
> instr(0x70,8);
> {unsigned char x;input(x);
> store(hl,x);
> }
> endinstr;
>
> instr(0x71,8);
> {unsigned char x=fetch(hl);
> tstates+=out(tstates,b,c,x);
> }
> endinstr;
>
> Note that this has NO effect on running zxc, etc. Just using Zxcc
> as an emulator driving i/o devices like am9511."
>
> This has no effect on Zxcc usually... just if trying to do i/o (adding to the emulator).
> Ran across this when integrating am9511 into Zxcc.
>
> FredW

Thanks Fred.

I have added this fix to my ZXCC GitHub repository (with credit to you and a
pointer to your am9511 files).

Tony

Re: Some updates to John Elliott's ZXCC

<rAfUI.639396$Kq1.568723@usenetxs.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx07.ams4.POSTED!not-for-mail
From: zgedn...@spam^H^H^H^Hgmail.com (Russell Marks)
Newsgroups: comp.os.cpm
Subject: Re: Some updates to John Elliott's ZXCC
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
Organization: this space intentionally left blank
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Lines: 82
Message-ID: <rAfUI.639396$Kq1.568723@usenetxs.com>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sat, 21 Aug 2021 23:00:39 UTC
Date: Sat, 21 Aug 2021 23:00:39 GMT
X-Received-Bytes: 3100
 by: Russell Marks - Sat, 21 Aug 2021 23:00 UTC

Tony Nicholson <agn453@gmail.com> wrote:

> For many years I've been using John Elliott's ZXCC - the CP/M
> 2/3 emulator for crosscompiling and running CP/M tools under
> MS-DOS and Linux/Unix/macOS.
>
> I've just found and fixed what I think are a couple of issues

It might be worth letting John know about this if you haven't yet, I
see there are recent updates on his JOYCE page for example.

> If anyone reading this has found (and fixed) any other issues
> with ZXCC - I'd appreciate you raising them on GitHub or
> replying to this thread.

One thing I remember noticing is that DAA isn't quite right (this also
affects some emulators I released years ago, which used essentially
the same Z80 emulation). The fix I did was a bit crude, just porting
DAA from yaze instead. :-)

One way to see the difference this makes is running "zexdoc", also
from yaze (or yaze-ag). I think it'll still fail "zexall" though.

------------------------------ cut here ------------------------------
--- zxcc-0.5.7/bin/z80ops.h 2001-07-15 23:15:09.000000000 +0100
+++ zxcc-0.5.7-daa-fix/bin/z80ops.h 2021-08-21 23:12:30.330014108 +0100
@@ -317,15 +317,43 @@
instr(39,4);
{
- unsigned char incr=0, carry=cy;
- if((f&0x10) || (a&0x0f)>9) incr=6;
- if((f&1) || (a>>4)>9) incr|=0x60;
- if(f&2)suba(incr,0);
- else {
- if(a>0x90 && (a&15)>9)incr|=0x60;
- adda(incr,0);
- }
- f=((f|carry)&0xfb)|parity(a);
+ /* Frank D. Cringle's DAA implementation, converted from yaze 1.10 */
+ unsigned int acu,temp,cbits;
+
+ acu=a;
+ temp=(acu&15);
+ cbits=(f&1);
+ if(f&2) /* if N */
+ {
+ /* last operation was a subtract */
+ int hd=(cbits || (acu>0x99));
+ if((f&16) || (temp>9))
+ { /* adjust low digit */
+ if(temp>5) f&=~16;
+ acu-=6;
+ acu&=0xff;
+ }
+ /* adjust high digit */
+ if(hd)
+ acu-=0x160;
+ }
+ else
+ {
+ /* last operation was an add */
+ if((f&16) || (temp>9))
+ {
+ /* adjust low digit */
+ if(temp>9) f|=16; else f&=~16;
+ acu+=6;
+ }
+ /* adjust high digit */
+ if(cbits || ((acu&0x1f0)>0x90))
+ acu+=0x60;
+ }
+ cbits|=((acu>>8)&1);
+ acu&=0xff;
+ a=acu;
+ f=((acu&0xa8)|((acu==0)<<6)|(f&0x12)|parity(a)|cbits);
}
endinstr;
------------------------------ cut here ------------------------------

-Rus.

Re: Some updates to John Elliott's ZXCC

<992b7b5d-2038-479c-97a0-f9b6b30cb39dn@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:1a11:: with SMTP id f17mr24721206qtb.308.1629616623616;
Sun, 22 Aug 2021 00:17:03 -0700 (PDT)
X-Received: by 2002:aca:1e05:: with SMTP id m5mr8068392oic.29.1629616623376;
Sun, 22 Aug 2021 00:17:03 -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, 22 Aug 2021 00:17:03 -0700 (PDT)
In-Reply-To: <rAfUI.639396$Kq1.568723@usenetxs.com>
Injection-Info: google-groups.googlegroups.com; posting-host=89.245.74.231; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 89.245.74.231
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com> <rAfUI.639396$Kq1.568723@usenetxs.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <992b7b5d-2038-479c-97a0-f9b6b30cb39dn@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Sun, 22 Aug 2021 07:17:03 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 11
 by: Udo Munk - Sun, 22 Aug 2021 07:17 UTC

Russell Marks schrieb am Sonntag, 22. August 2021 um 01:00:42 UTC+2:
> One thing I remember noticing is that DAA isn't quite right (this also
> affects some emulators I released years ago, which used essentially
> the same Z80 emulation). The fix I did was a bit crude, just porting
> DAA from yaze instead. :-)

This is because almost all documentation about DAA is wrong, Zilog, Mostek, Zaks book ...
If I remember right Zilog corrected it in their latest Z80 users guide though.
In the z80pack sources I left my old version implemented according to the books, active
is a working one that was figured out by Mark Garlanger. Source is more readable then
what I have seen elsewhere, so you might have a look and shows the problem with the
wrong documentation.

Re: Some updates to John Elliott's ZXCC

<4NpUI.1019263$Fs1.980635@usenetxs.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!aioe.org!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx14.ams4.POSTED!not-for-mail
From: zgedn...@spam^H^H^H^Hgmail.com (Russell Marks)
Newsgroups: comp.os.cpm
Subject: Re: Some updates to John Elliott's ZXCC
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
<rAfUI.639396$Kq1.568723@usenetxs.com>
<992b7b5d-2038-479c-97a0-f9b6b30cb39dn@googlegroups.com>
Organization: this space intentionally left blank
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Lines: 21
Message-ID: <4NpUI.1019263$Fs1.980635@usenetxs.com>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 22 Aug 2021 10:36:48 UTC
Date: Sun, 22 Aug 2021 10:36:48 GMT
X-Received-Bytes: 1743
 by: Russell Marks - Sun, 22 Aug 2021 10:36 UTC

Udo Munk <udo.munk@freenet.de> wrote:

> Russell Marks schrieb am Sonntag, 22. August 2021 um 01:00:42 UTC+2:
>> One thing I remember noticing is that DAA isn't quite right (this also
>> affects some emulators I released years ago, which used essentially
>> the same Z80 emulation). The fix I did was a bit crude, just porting
>> DAA from yaze instead. :-)
>
> This is because almost all documentation about DAA is wrong, Zilog,
> Mostek, Zaks book ... If I remember right Zilog corrected it in
> their latest Z80 users guide though. In the z80pack sources I left
> my old version implemented according to the books, active is a
> working one that was figured out by Mark Garlanger. Source is more
> readable then what I have seen elsewhere, so you might have a look
> and shows the problem with the wrong documentation.

I did look at a few implementations and descriptions of DAA - the yaze
and z80pack implementations are pretty similar, but personally I found
the yaze one slightly easier to follow.

-Rus.

Re: Some updates to John Elliott's ZXCC

<980f4ceb-623d-496d-adb6-7cc2e6a70006n@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:120d:: with SMTP id y13mr25575736qtx.10.1629629773467;
Sun, 22 Aug 2021 03:56:13 -0700 (PDT)
X-Received: by 2002:a05:6808:bcf:: with SMTP id o15mr8890642oik.118.1629629773200;
Sun, 22 Aug 2021 03:56:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.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, 22 Aug 2021 03:56:12 -0700 (PDT)
In-Reply-To: <rAfUI.639396$Kq1.568723@usenetxs.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2403:5800:7600:3300:1171:2ee8:9865:a64d;
posting-account=5wnjpAoAAABrhNpKTP0a5hOqJUBnLT3d
NNTP-Posting-Host: 2403:5800:7600:3300:1171:2ee8:9865:a64d
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com> <rAfUI.639396$Kq1.568723@usenetxs.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <980f4ceb-623d-496d-adb6-7cc2e6a70006n@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: agn...@gmail.com (Tony Nicholson)
Injection-Date: Sun, 22 Aug 2021 10:56:13 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Tony Nicholson - Sun, 22 Aug 2021 10:56 UTC

Rus,

On Sunday, August 22, 2021 at 9:00:42 AM UTC+10, Russell Marks wrote:

> It might be worth letting John know about this if you haven't yet, I
> see there are recent updates on his JOYCE page for example.

Thanks - I hadn't thought to look into John's JOYCE code. He's been
known to lurk here (like I have for the past 30+ years). I'll forward
details to him soon.

> One thing I remember noticing is that DAA isn't quite right (this also
> affects some emulators I released years ago, which used essentially
> the same Z80 emulation). The fix I did was a bit crude, just porting
> DAA from yaze instead. :-)
>
> One way to see the difference this makes is running "zexdoc", also
> from yaze (or yaze-ag). I think it'll still fail "zexall" though.

Indeed, running 'zxcc zexdoc' flags an error with the <daa,cpl,scf,ccf>
instruction group - confirming this. Thanks for the patch.

Running zexall throws many errors.

Tony

Re: Some updates to John Elliott's ZXCC

<71713b87-f43e-4b61-a512-f12ff206285bn@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:6214:2622:: with SMTP id gv2mr29923678qvb.128.1640905642422;
Thu, 30 Dec 2021 15:07:22 -0800 (PST)
X-Received: by 2002:a05:6808:5d7:: with SMTP id d23mr24963953oij.97.1640905642038;
Thu, 30 Dec 2021 15:07:22 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!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: Thu, 30 Dec 2021 15:07:21 -0800 (PST)
In-Reply-To: <980f4ceb-623d-496d-adb6-7cc2e6a70006n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2403:5807:8025:0:415e:38a8:175d:302c;
posting-account=5wnjpAoAAABrhNpKTP0a5hOqJUBnLT3d
NNTP-Posting-Host: 2403:5807:8025:0:415e:38a8:175d:302c
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
<rAfUI.639396$Kq1.568723@usenetxs.com> <980f4ceb-623d-496d-adb6-7cc2e6a70006n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <71713b87-f43e-4b61-a512-f12ff206285bn@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: agn...@gmail.com (Tony Nicholson)
Injection-Date: Thu, 30 Dec 2021 23:07:22 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 18
 by: Tony Nicholson - Thu, 30 Dec 2021 23:07 UTC

Thanks to Mark Ogden and Michal Tomek, there's been further updates
to ZXCC - the CP/M cross-compiling emulator.

The latest update now compiles under Microsoft Windows (as a set of
command-line utilities built using both Visual Studio and under Cygwin)
as well as the previous macOS/Linux support.

Get it from

https://github.com/agn453/ZXCC

This release also fixes a long-standing "exact file size" emulation to
match the (undocumented) way this is handled by CP/M 3 and MP/M
using the same conventions that the updated HI-TECH C compiler does.

Have a Happy New Year / Hogmanay

Tony

Re: Some updates to John Elliott's ZXCC

<883f63f3-2b7f-4b39-8dea-d8200ab49229n@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:242:b0:2de:2b62:7633 with SMTP id c2-20020a05622a024200b002de2b627633mr20269384qtx.657.1646144356146;
Tue, 01 Mar 2022 06:19:16 -0800 (PST)
X-Received: by 2002:a05:6870:9a29:b0:d6:bba7:970f with SMTP id
fo41-20020a0568709a2900b000d6bba7970fmr11705637oab.166.1646144355943; Tue, 01
Mar 2022 06:19:15 -0800 (PST)
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, 1 Mar 2022 06:19:15 -0800 (PST)
In-Reply-To: <71713b87-f43e-4b61-a512-f12ff206285bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=86.175.129.134; posting-account=xl-6oAgAAABXoEsqGWnUqZDyJ4niBm0S
NNTP-Posting-Host: 86.175.129.134
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
<rAfUI.639396$Kq1.568723@usenetxs.com> <980f4ceb-623d-496d-adb6-7cc2e6a70006n@googlegroups.com>
<71713b87-f43e-4b61-a512-f12ff206285bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <883f63f3-2b7f-4b39-8dea-d8200ab49229n@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: joh...@seasip.info (John Elliott)
Injection-Date: Tue, 01 Mar 2022 14:19:16 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: John Elliott - Tue, 1 Mar 2022 14:19 UTC

On Thursday, December 30, 2021 at 11:07:22 PM UTC, Tony Nicholson wrote:
> This release also fixes a long-standing "exact file size" emulation to
> match the (undocumented) way this is handled by CP/M 3 and MP/M
> using the same conventions that the updated HI-TECH C compiler does.

Can't say I approve of the choice made there - when I wrote zxcc (and all my CP/M software), the convention I used was the same one that Digital Research used in DOS Plus, so I think it's as 'official' as it would get. I'm aware that ISX used the opposite convention, but I'd prefer to keep round-trip compatibility with DOS Plus over ISX.

(And yes, I'm aware that PIPEMGR has been similarly mangled. I know the licence allows it - doesn't mean I have to like it.)


--
John Elliott

Re: Some updates to John Elliott's ZXCC

<1d010fa3-04c8-408c-8cb7-db8ab9a8e1a6n@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:1044:b0:2de:2db0:3c01 with SMTP id f4-20020a05622a104400b002de2db03c01mr23371601qte.365.1646215463195;
Wed, 02 Mar 2022 02:04:23 -0800 (PST)
X-Received: by 2002:a05:6870:8316:b0:d3:a001:96cf with SMTP id
p22-20020a056870831600b000d3a00196cfmr14206276oae.85.1646215462478; Wed, 02
Mar 2022 02:04:22 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!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: Wed, 2 Mar 2022 02:04:22 -0800 (PST)
In-Reply-To: <883f63f3-2b7f-4b39-8dea-d8200ab49229n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c4:83:c100:b9e1:3f7:6141:6942;
posting-account=7LAplAoAAAByKIXUc8acNTC_dUp06kdO
NNTP-Posting-Host: 2a00:23c4:83:c100:b9e1:3f7:6141:6942
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
<rAfUI.639396$Kq1.568723@usenetxs.com> <980f4ceb-623d-496d-adb6-7cc2e6a70006n@googlegroups.com>
<71713b87-f43e-4b61-a512-f12ff206285bn@googlegroups.com> <883f63f3-2b7f-4b39-8dea-d8200ab49229n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1d010fa3-04c8-408c-8cb7-db8ab9a8e1a6n@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: ogde...@gmail.com (ogd...@gmail.com)
Injection-Date: Wed, 02 Mar 2022 10:04:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 28
 by: ogd...@gmail.com - Wed, 2 Mar 2022 10:04 UTC

On Tuesday, 1 March 2022 at 14:19:16 UTC, John Elliott wrote:
> On Thursday, December 30, 2021 at 11:07:22 PM UTC, Tony Nicholson wrote:
> > This release also fixes a long-standing "exact file size" emulation to
> > match the (undocumented) way this is handled by CP/M 3 and MP/M
> > using the same conventions that the updated HI-TECH C compiler does.
> Can't say I approve of the choice made there - when I wrote zxcc (and all my CP/M software), the convention I used was the same one that Digital Research used in DOS Plus, so I think it's as 'official' as it would get. I'm aware that ISX used the opposite convention, but I'd prefer to keep round-trip compatibility with DOS Plus over ISX.
>
> (And yes, I'm aware that PIPEMGR has been similarly mangled. I know the licence allows it - doesn't mean I have to like it.)
>
>
> --
> John Elliott
John
When I made the changes to zxcc, I did note that there were two different approaches used for exact file size. The one you implemented did not align with the modifications done to the Hi-Tech C library as such files were being corrupted. As I didn't find any specific information in the CP/M 80 re exact size, although I admit I didn't consider 8086 versions, I modified to align with Hi-Tech C, the alternative of modifying the Hi-Tech library is certainly possible, as is the option to have a command line switch to use either.
Mark

Re: Some updates to John Elliott's ZXCC

<f7c81db6-3e60-49a2-b4ce-73f29bceb39fn@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:1649:b0:2de:2dfd:8c89 with SMTP id y9-20020a05622a164900b002de2dfd8c89mr23049466qtj.267.1646220163172;
Wed, 02 Mar 2022 03:22:43 -0800 (PST)
X-Received: by 2002:a05:6808:1b21:b0:2d5:bf3:249f with SMTP id
bx33-20020a0568081b2100b002d50bf3249fmr16847041oib.6.1646220162962; Wed, 02
Mar 2022 03:22:42 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!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: Wed, 2 Mar 2022 03:22:42 -0800 (PST)
In-Reply-To: <1d010fa3-04c8-408c-8cb7-db8ab9a8e1a6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=86.175.129.134; posting-account=xl-6oAgAAABXoEsqGWnUqZDyJ4niBm0S
NNTP-Posting-Host: 86.175.129.134
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
<rAfUI.639396$Kq1.568723@usenetxs.com> <980f4ceb-623d-496d-adb6-7cc2e6a70006n@googlegroups.com>
<71713b87-f43e-4b61-a512-f12ff206285bn@googlegroups.com> <883f63f3-2b7f-4b39-8dea-d8200ab49229n@googlegroups.com>
<1d010fa3-04c8-408c-8cb7-db8ab9a8e1a6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f7c81db6-3e60-49a2-b4ce-73f29bceb39fn@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: joh...@seasip.info (John Elliott)
Injection-Date: Wed, 02 Mar 2022 11:22:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 17
 by: John Elliott - Wed, 2 Mar 2022 11:22 UTC

On Wednesday, March 2, 2022 at 10:04:23 AM UTC, ogd...@gmail.com wrote:
> John
> When I made the changes to zxcc, I did note that there were two different approaches used for exact file size. The one you implemented did not align with the modifications done to the Hi-Tech C library as such files were being corrupted. As I didn't find any specific information in the CP/M 80 re exact size, although I admit I didn't consider 8086 versions, I modified to align with Hi-Tech C, the alternative of modifying the Hi-Tech library is certainly possible, as is the option to have a command line switch to use either.
> Mark

I did write up what was known about which programs used what conventions at <http://www.seasip.info/Cpm/bytelen.html>, though I clearly need to revise it to give greater prominence to DOS Plus being a genuine DRI product.

--
John Elliott

Re: Some updates to John Elliott's ZXCC

<e4d03b97-b097-4c23-b6ac-eb1fbcf65a52n@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:15c1:b0:649:1a2b:4850 with SMTP id o1-20020a05620a15c100b006491a2b4850mr15944279qkm.525.1646222858366;
Wed, 02 Mar 2022 04:07:38 -0800 (PST)
X-Received: by 2002:a05:6808:3020:b0:2d7:2d3d:b651 with SMTP id
ay32-20020a056808302000b002d72d3db651mr19073669oib.139.1646222858165; Wed, 02
Mar 2022 04:07:38 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!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: Wed, 2 Mar 2022 04:07:37 -0800 (PST)
In-Reply-To: <f7c81db6-3e60-49a2-b4ce-73f29bceb39fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=86.175.129.134; posting-account=xl-6oAgAAABXoEsqGWnUqZDyJ4niBm0S
NNTP-Posting-Host: 86.175.129.134
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
<rAfUI.639396$Kq1.568723@usenetxs.com> <980f4ceb-623d-496d-adb6-7cc2e6a70006n@googlegroups.com>
<71713b87-f43e-4b61-a512-f12ff206285bn@googlegroups.com> <883f63f3-2b7f-4b39-8dea-d8200ab49229n@googlegroups.com>
<1d010fa3-04c8-408c-8cb7-db8ab9a8e1a6n@googlegroups.com> <f7c81db6-3e60-49a2-b4ce-73f29bceb39fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e4d03b97-b097-4c23-b6ac-eb1fbcf65a52n@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: joh...@seasip.info (John Elliott)
Injection-Date: Wed, 02 Mar 2022 12:07:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 4
 by: John Elliott - Wed, 2 Mar 2022 12:07 UTC

If it did become necessary for 8-bit CP/M software to support both conventions, then rather than command-line switches or configuration files I'd suggest holding the setting in the SCB (byte A9h isn't currently used) and adding an extra option to SETDEF: SETDEF [FILESIZE=ISX] or SETDEF [FILESIZE=DOSPLUS]. I hope that won't be required, though.

Re: Some updates to John Elliott's ZXCC

<1b3c8d6d-5b56-4873-810a-ba8a8c579a1cn@googlegroups.com>

 copy mid

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

 copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:4309:b0:67b:3fc1:86eb with SMTP id u9-20020a05620a430900b0067b3fc186ebmr4219445qko.495.1647555904750;
Thu, 17 Mar 2022 15:25:04 -0700 (PDT)
X-Received: by 2002:a05:6830:442a:b0:5c9:3a6b:de3e with SMTP id
q42-20020a056830442a00b005c93a6bde3emr2434308otv.151.1647555904535; Thu, 17
Mar 2022 15:25:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!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: Thu, 17 Mar 2022 15:25:04 -0700 (PDT)
In-Reply-To: <e4d03b97-b097-4c23-b6ac-eb1fbcf65a52n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2403:5807:8025:0:d005:b516:3018:40d6;
posting-account=5wnjpAoAAABrhNpKTP0a5hOqJUBnLT3d
NNTP-Posting-Host: 2403:5807:8025:0:d005:b516:3018:40d6
References: <7bd1b5f4-e87b-4a22-ad45-0872dbae3623n@googlegroups.com>
<rAfUI.639396$Kq1.568723@usenetxs.com> <980f4ceb-623d-496d-adb6-7cc2e6a70006n@googlegroups.com>
<71713b87-f43e-4b61-a512-f12ff206285bn@googlegroups.com> <883f63f3-2b7f-4b39-8dea-d8200ab49229n@googlegroups.com>
<1d010fa3-04c8-408c-8cb7-db8ab9a8e1a6n@googlegroups.com> <f7c81db6-3e60-49a2-b4ce-73f29bceb39fn@googlegroups.com>
<e4d03b97-b097-4c23-b6ac-eb1fbcf65a52n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1b3c8d6d-5b56-4873-810a-ba8a8c579a1cn@googlegroups.com>
Subject: Re: Some updates to John Elliott's ZXCC
From: agn...@gmail.com (Tony Nicholson)
Injection-Date: Thu, 17 Mar 2022 22:25:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 54
 by: Tony Nicholson - Thu, 17 Mar 2022 22:25 UTC

On Wednesday, March 2, 2022 at 11:07:39 PM UTC+11, John Elliott wrote:
> If it did become necessary for 8-bit CP/M software to support both conventions, then rather than command-line switches or configuration files I'd suggest holding the setting in the SCB (byte A9h isn't currently used) and adding an extra option to SETDEF: SETDEF [FILESIZE=ISX] or SETDEF [FILESIZE=DOSPLUS]. I hope that won't be required, though.

I've updated both the ZXCC and HI-TECH-Z80-C repositories on GitHub
to return to the DOS Plus convention for exact file size - based on updates
supplied by Mark Ogden.

You'll find them at

https://github.com/agn453/ZXCC

and

https://github.com/agn453/HI-TECH-Z80-C

The HI-TECH Z80 C v3.09-13 version retains support for the "Jon Saxton"
ISX/ISIS mode via an EXACT system environment variable. Select the
mode by adding a line to the ENVIRON file (that is usually located on drive
A: in user 0).

The C library close() routine examines the value of EXACT to adjust the last
sector byte count convention. It does this only when you are running CP/M 3,
DOS Plus or MP/M.

The value of the EXACT environment variable determines whether to use
DOSPLUS or ISX mode. Only the first letter is tested, and if the value is not
set, then the run-time routines assume CP/M 2.2 mode (relying on a Ctrl-Z
end-of file marker in text files).

My ENVIRON file has (for example)

TMP=M:
HITECH=0:A:
EXACT=DOSPLUS

to direct temporary compiler files to my ram drive, the compiler files are on
drive A; in user 0 (with the SYS attribute set) and to use the DOS Plus
convention for exact file sizes under CP/M 3.

I've also updated the PIPEMGR RSX sources (included on the HI-TECH Z80
C repository) to use DOS Plus exact file mode by default. Change the
"exact" definition in the assembler source and rebuild to get a version that
uses ISX/ISIS mode. Remember to re-attach the new PIPEMGR.RSX to
programs that use it with GENCOM after you upgrade HI-TECH C.

Tony

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor