Skip to content

Commit

Permalink
V3.09-10 consolidated release update
Browse files Browse the repository at this point in the history
  • Loading branch information
agn453 committed Dec 29, 2021
1 parent aaef1ad commit ff4f069
Show file tree
Hide file tree
Showing 13 changed files with 176 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ MAKEFILE text eol=crlf
*.ARC binary
*.RSX binary
*.pdf binary
OPTIONS* text eol=crlf
OPTIONS text eol=crlf
C280OPTS text eol=crlf
133 changes: 133 additions & 0 deletions BUILD-C.LOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@

10E>;
10E>date
A:DATE COM (User 0)
Thu 30/12/2021 07:42:10
10E>;
10E>; Build Z80 version
10E>c -o -v c309-10.c
A:C COM (User 0)
Hi-Tech C Compiler (CP/M-80) V3.09-9
Copyright (C) 1984-87 HI-TECH SOFTWARE
Updated from https://github.com/agn453/HI-TECH-Z80-C
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -I0:A: C309-10.C $CTMP1.$$$
0:A:P1 $CTMP1.$$$ $CTMP2.$$$ $CTMP3.$$$
0:A:CGEN $CTMP2.$$$ $CTMP1.$$$
0:A:OPTIM $CTMP1.$$$ $CTMP2.$$$
0:A:ZAS -J -N -OC309-10.OBJ $CTMP2.$$$
ERA $CTMP1.$$$
ERA $CTMP2.$$$
ERA $CTMP3.$$$
ERA $CTMP5.$$$
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OC309-10.COM 0:A:CRTCPM.OBJ C309-10.OBJ 0:A:LIBC.LIB
ERA C309-10.OBJ
ERA $$EXEC.$$$

10E>;
10E>; Now build Z280 version
10E>;
10E>; First a Z280 version using the Z80 LIBC.C (runs on Z80)
10E>c309-10 -o -v -ec280z80.com -dZ280 c309-10.c
E:C309-10 COM
Hi-Tech C Compiler (CP/M-80) V3.09-10
Copyright (C) 1984-87 HI-TECH SOFTWARE
Updated from https://github.com/agn453/HI-TECH-Z80-C
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -DZ280 -I0:A: C309-10.C $CTMP1.$$$
0:A:P1 $CTMP1.$$$ $CTMP2.$$$ $CTMP3.$$$
0:A:CGEN $CTMP2.$$$ $CTMP1.$$$
0:A:OPTIM $CTMP1.$$$ $CTMP2.$$$
0:A:ZAS -J -N -OC309-10.OBJ $CTMP2.$$$
ERA $CTMP1.$$$
ERA $CTMP2.$$$
ERA $CTMP3.$$$
ERA $CTMP5.$$$
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OC280Z80.COM 0:A:CRTCPM.OBJ C309-10.OBJ 0:A:LIBC.LIB
ERA C309-10.OBJ
ERA $$EXEC.$$$

10E>;
10E>; and the Z280 optimized version from it (only runs on a Z280)
10E>c280z80 -of2 -v -ec280-10.com c309-10.c
E:C280Z80 COM
Hi-Tech C Compiler (CP/M-80) V3.09-10 [Z280 MPU version]
Copyright (C) 1984-87 HI-TECH SOFTWARE
Updated from https://github.com/agn453/HI-TECH-Z80-C
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -DZ280 -I0:A: C309-10.C $CTMP1.$$$
0:A:P1 $CTMP1.$$$ $CTMP2.$$$ $CTMP3.$$$
0:A:CGEN $CTMP2.$$$ $CTMP1.$$$
0:A:OPTIM -F $CTMP1.$$$ $CTMP2.$$$
0:A:OPTIMH -F $CTMP2.$$$ $CTMP5.$$$
481 bytes optimized away
1528 bytes replaced
0:A:ZAS -N -OC309-10.OBJ $CTMP5.$$$
ERA $CTMP1.$$$
ERA $CTMP2.$$$
ERA $CTMP3.$$$
ERA $CTMP5.$$$
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OC280-10.COM 0:A:C280CPM.OBJ C309-10.OBJ 0:A:LIB280C.LIB
ERA C309-10.OBJ
ERA $$EXEC.$$$

10E>;
10E>c280-10 -o2 -v optimh.c
E:C280-10 COM
Hi-Tech C Compiler (CP/M-80) V3.09-10 [Z280 MPU version]
Copyright (C) 1984-87 HI-TECH SOFTWARE
Updated from https://github.com/agn453/HI-TECH-Z80-C
0:A:CPP -DCPM -DHI_TECH_C -Dz80 -DZ280 -I0:A: OPTIMH.C $CTMP1.$$$
0:A:P1 $CTMP1.$$$ $CTMP2.$$$ $CTMP3.$$$
0:A:CGEN $CTMP2.$$$ $CTMP1.$$$
0:A:OPTIM $CTMP1.$$$ $CTMP2.$$$
0:A:OPTIMH $CTMP2.$$$ $CTMP5.$$$
217 bytes optimized away
390 bytes replaced
0:A:ZAS -J -N -OOPTIMH.OBJ $CTMP5.$$$
ERA $CTMP1.$$$
ERA $CTMP2.$$$
ERA $CTMP3.$$$
ERA $CTMP5.$$$
0:A:LINQ -Z -Ptext=0,data,bss -C100H -OOPTIMH.COM 0:A:C280CPM.OBJ OPTIMH.OBJ 0:A:LIB280C.LIB
ERA OPTIMH.OBJ
ERA $$EXEC.$$$

10E>;
10E>dir c*.com [fu
A:DIR COM (User 0)

Scanning Directory...

Sorting Directory...

Directory For Drive E: User 10

Name Bytes Recs Attributes Prot Update Create
------------ ------ ------ ------------ ------ -------------- --------------

C280-10 COM 24k 189 Dir RW None 30/12/21 07:52 30/12/21 07:52
C280-9 COM 24k 189 Dir RW None 18/08/21 15:51 18/08/21 15:51
C280Z80 COM 28k 204 Dir RW None 30/12/21 07:49 30/12/21 07:49
C309-10 COM 28k 201 Dir RW None 30/12/21 07:45 30/12/21 07:45
C309-9 COM 28k 201 Dir RW None 18/08/21 15:44 18/08/21 15:44

Total Bytes = 132k Total Records = 984 Files Found = 5
Total 1k Blocks = 126 Used/Max Dir Entries For Drive E: 1073/2048

10E>dir optimh.com [fu
A:DIR COM (User 0)

Scanning Directory...

Directory For Drive E: User 10

Name Bytes Recs Attributes Prot Update Create
------------ ------ ------ ------------ ------ -------------- --------------

OPTIMH COM 20k 144 Dir RW None 30/12/21 07:55 30/12/21 07:55

Total Bytes = 20k Total Records = 144 Files Found = 1
Total 1k Blocks = 18 Used/Max Dir Entries For Drive E: 1073/2048

10E>;
10E>; Done
10E>put console to console
A:PUT COM (User 0)
Expand Down
23 changes: 23 additions & 0 deletions BUILD-C.SUB
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
era build-c.log
put console output to file build-c.log [system]
;
date
;
; Build Z80 version
c -o -v c309-10.c
;
; Now build Z280 version
;
; First a Z280 version using the Z80 LIBC.C (runs on Z80)
c309-10 -o -v -ec280z80.com -dZ280 c309-10.c
;
; and the Z280 optimized version from it (only runs on a Z280)
c280z80 -of2 -v -ec280-10.com c309-10.c
;
c280-10 -o2 -v optimh.c
;
dir c*.com [fu
dir optimh.com [fu
;
; Done
put console to console
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ emulation using RunZ80, SIMH or ZXCC.
Each release is a consolidated milestone with various updates and
patches applied.

The latest release is V3.09-9 (see Modification History below).
The latest release is V3.09-10 (see Modification History below).

If you only wish to download the latest binary distribution, download
it from
Expand Down Expand Up @@ -1149,6 +1149,18 @@ with the SYS file attribute (so they are accessible from all user
areas and via the CP/M 3 search path).


## C front-end fixes and new V3.09-10 update release

Mark Ogden has supplied some fixes to the C front-end so that it can process
long command lines (particularly when wildcard expanded filename are
specified). I've also added a minor change to the Z280 front-end to use
the C280OPTS file when help (-H) is requested from the C280 command.

The new release V3.09-10 consolidates all the changes since V3.09-9. As
usual, updated binary distribution libraries are available too.



--
Tony Nicholson
28-Dec-2021
30-Dec-2021
6 changes: 4 additions & 2 deletions cpm/C309-9.C → cpm/C309-10.C
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ static char *paths[] =
"$EXEC",
"CREF",
"SYMTOAS",
"OPTIONS",
#ifdef Z280
"C280OPTS",
"OPTIMH",
#else
"OPTIONS",
#endif
};

Expand Down Expand Up @@ -226,7 +228,7 @@ int main(int argc, char **argv)
signal_t prev_sig;
prev_sig=signal(SIGINT,SIG_IGN);

fprintf(stderr, "Hi-Tech C Compiler (CP/M-80) V3.09-9");
fprintf(stderr, "Hi-Tech C Compiler (CP/M-80) V3.09-10");
#ifdef Z280
fprintf(stderr, " [Z280 MPU version]");
#endif
Expand Down
Binary file added dist/C309-10.COM
Binary file not shown.
Binary file removed dist/C309-9.COM
Binary file not shown.
Binary file modified htc-bin.lbr
Binary file not shown.
Binary file modified z280bin.lbr
Binary file not shown.
Binary file added z280dist/C280-10.COM
Binary file not shown.
Binary file removed z280dist/C280-9.COM
Binary file not shown.
File renamed without changes.
Binary file modified z280dist/OPTIMH.COM
Binary file not shown.

0 comments on commit ff4f069

Please sign in to comment.