Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You had mail, but the super-user read it, and deleted it!


devel / comp.os.cpm / A tasty HI-TECH C treat

SubjectAuthor
* A tasty HI-TECH C treatfred_...@hotmail.com
`* Re: A tasty HI-TECH C treatАндрей Никитин
 `* Re: A tasty HI-TECH C treatfred_...@hotmail.com
  `* Re: A tasty HI-TECH C treatfred_...@hotmail.com
   `* Re: A tasty HI-TECH C treatАндрей Никитин
    `- Re: A tasty HI-TECH C treatfred_...@hotmail.com

1
A tasty HI-TECH C treat

<f456c7bd-0eec-4cd2-a9b4-24590bfd6ee7n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a0c:bdae:: with SMTP id n46mr10664889qvg.8.1620399146969; Fri, 07 May 2021 07:52:26 -0700 (PDT)
X-Received: by 2002:aca:f44c:: with SMTP id s73mr7324725oih.142.1620399146703; Fri, 07 May 2021 07:52:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!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: Fri, 7 May 2021 07:52:26 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:941c:a000:5d65:5ce5:488c:50a5; posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:941c:a000:5d65:5ce5:488c:50a5
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f456c7bd-0eec-4cd2-a9b4-24590bfd6ee7n@googlegroups.com>
Subject: A tasty HI-TECH C treat
From: fred_wei...@hotmail.com (fred_...@hotmail.com)
Injection-Date: Fri, 07 May 2021 14:52:26 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 22
 by: fred_...@hotmail.com - Fri, 7 May 2021 14:52 UTC

A year ago, I created

https://github.com/ratboy666/mtrel

This was a source level as to mac conversion to allow hi-tech c to be linked
with L80 (or PLINK-II, or whatever).

This is not satisfactory because the assembler production from C source
is not always good. And you lose the benefits of ZAS.

So, I have added objtomac.c which converts OBJ to MAC files which can
be assembled.

Consider this "alpha" level -- it works for me, but required reversing of
the OBJ files. I would really like to go directly to REL, but this appears
a bit more flexible. Pull requests on github welcome!

You can use github for any bug reports, or this forum.

Thanks, and have fun
FredW

Re: A tasty HI-TECH C treat

<7a83abde-b120-4c49-aed8-b587cd44cd01n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:7745:: with SMTP id s66mr10742590qkc.18.1620411124833;
Fri, 07 May 2021 11:12:04 -0700 (PDT)
X-Received: by 2002:a9d:2f66:: with SMTP id h93mr4408524otb.188.1620411124219;
Fri, 07 May 2021 11:12:04 -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, 7 May 2021 11:12:03 -0700 (PDT)
In-Reply-To: <f456c7bd-0eec-4cd2-a9b4-24590bfd6ee7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.37.209.254; posting-account=g8ksUwoAAAC0mgCsQ1LJvKj1k2HoKsbw
NNTP-Posting-Host: 77.37.209.254
References: <f456c7bd-0eec-4cd2-a9b4-24590bfd6ee7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7a83abde-b120-4c49-aed8-b587cd44cd01n@googlegroups.com>
Subject: Re: A tasty HI-TECH C treat
From: nikitinp...@gmail.com (Андрей Никитин)
Injection-Date: Fri, 07 May 2021 18:12:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Андрей Ник - Fri, 7 May 2021 18:12 UTC

пятница, 7 мая 2021 г. в 17:52:27 UTC+3, fred_...@hotmail.com:
> A year ago, I created
>
> https://github.com/ratboy666/mtrel
>
> This was a source level as to mac conversion to allow hi-tech c to be linked
> with L80 (or PLINK-II, or whatever).
>
> This is not satisfactory because the assembler production from C source
> is not always good. And you lose the benefits of ZAS.
>
> So, I have added objtomac.c which converts OBJ to MAC files which can
> be assembled.
>
> Consider this "alpha" level -- it works for me, but required reversing of
> the OBJ files. I would really like to go directly to REL, but this appears
> a bit more flexible. Pull requests on github welcome!
>
> You can use github for any bug reports, or this forum.
>
> Thanks, and have fun
> FredW
The structure of the object file of the HI-TECH C compilers is structured in a certain way.
Your program is a bit like HI-TECH's DUMP utility. Unfortunately, it is only available in the MS-DOS version of the compilers. It's called DUMP.COM. Its task is to display on the screen the contents of an object file created by the HI-TECH assembler. As far as I understand, it is more universal and allows you to view the contents of object files created for several types of processors. In particular, for the object file of your OBJTOMAC.OBJ program, it shows the following information (I removed some of the output):

bash-3.2 $ emu2 DUMP.COM objtomac.obj
objtomac.obj
1 IDENT 10
Machine = Z80
32 bit order = 0 1 2 3
16 bit order = 0 1
2 TEXT 509
data 0 500
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

.... ... ...

7 TEXT 441
text 0 432
CD 00 00 E5 DD 6E 06 DD 66 07 E5 21 02 00 E5 21 01 00 E5 21 00
00 E5 CD 00 00 C1 C1 C1 C1 DD 75 FE DD 74 FF 11 02 00 B7 ED 52
28 06 21 00 00 C3 00 00 2A 00 00 CB 7C 20 0A EB 21 06 04 CD 00
00 F2 4D 00 21 09 08 E5 CD 00 00 C1 18 DF DD 6E 06 DD 66 07 E5

.... ... ...

20 END 2

The object file contains 20 records.
The first record defines the car type - Z80 and the byte ordering of int and long types. The rest contains information about program segments, names of variables and functions.

If you figured out the structure of the object file, then you need to make a little more effort and make an analogue of the DUMP.COM program for CP / M. This will be a useful action.

Regards
Andrey Nikitin

Re: A tasty HI-TECH C treat

<d5944f57-4cde-4b67-81b8-404aaf29fafcn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:ae85:: with SMTP id x127mr10915499qke.436.1620413005011;
Fri, 07 May 2021 11:43:25 -0700 (PDT)
X-Received: by 2002:a54:4017:: with SMTP id x23mr8004460oie.13.1620413004741;
Fri, 07 May 2021 11:43:24 -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, 7 May 2021 11:43:24 -0700 (PDT)
In-Reply-To: <7a83abde-b120-4c49-aed8-b587cd44cd01n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:941c:a000:5d65:5ce5:488c:50a5;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:941c:a000:5d65:5ce5:488c:50a5
References: <f456c7bd-0eec-4cd2-a9b4-24590bfd6ee7n@googlegroups.com> <7a83abde-b120-4c49-aed8-b587cd44cd01n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d5944f57-4cde-4b67-81b8-404aaf29fafcn@googlegroups.com>
Subject: Re: A tasty HI-TECH C treat
From: fred_wei...@hotmail.com (fred_...@hotmail.com)
Injection-Date: Fri, 07 May 2021 18:43:25 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fred_...@hotmail.com - Fri, 7 May 2021 18:43 UTC

On Friday, May 7, 2021 at 2:12:05 PM UTC-4, nikiti...@gmail.com wrote:
> пятница, 7 мая 2021 г. в 17:52:27 UTC+3, fred_...@hotmail.com:
> > A year ago, I created
> >
> > https://github.com/ratboy666/mtrel
> >
> > This was a source level as to mac conversion to allow hi-tech c to be linked
> > with L80 (or PLINK-II, or whatever).
> >
> > This is not satisfactory because the assembler production from C source
> > is not always good. And you lose the benefits of ZAS.
> >
> > So, I have added objtomac.c which converts OBJ to MAC files which can
> > be assembled.
> >
> > Consider this "alpha" level -- it works for me, but required reversing of
> > the OBJ files. I would really like to go directly to REL, but this appears
> > a bit more flexible. Pull requests on github welcome!
> >
> > You can use github for any bug reports, or this forum.
> >
> > Thanks, and have fun
> > FredW
> The structure of the object file of the HI-TECH C compilers is structured in a certain way.
> Your program is a bit like HI-TECH's DUMP utility. Unfortunately, it is only available in the MS-DOS version of the compilers. It's called DUMP.COM. Its task is to display on the screen the contents of an object file created by the HI-TECH assembler. As far as I understand, it is more universal and allows you to view the contents of object files created for several types of processors. In particular, for the object file of your OBJTOMAC.OBJ program, it shows the following information (I removed some of the output):
>
> bash-3.2 $ emu2 DUMP.COM objtomac.obj
> objtomac.obj
> 1 IDENT 10
> Machine = Z80
> 32 bit order = 0 1 2 3
> 16 bit order = 0 1
> 2 TEXT 509
> data 0 500
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>
> ... ... ...
>
> 7 TEXT 441
> text 0 432
> CD 00 00 E5 DD 6E 06 DD 66 07 E5 21 02 00 E5 21 01 00 E5 21 00
> 00 E5 CD 00 00 C1 C1 C1 C1 DD 75 FE DD 74 FF 11 02 00 B7 ED 52
> 28 06 21 00 00 C3 00 00 2A 00 00 CB 7C 20 0A EB 21 06 04 CD 00
> 00 F2 4D 00 21 09 08 E5 CD 00 00 C1 18 DF DD 6E 06 DD 66 07 E5
>
> ... ... ...
>
> 20 END 2
>
> The object file contains 20 records.
> The first record defines the car type - Z80 and the byte ordering of int and long types. The rest contains information about program segments, names of variables and functions.
>
> If you figured out the structure of the object file, then you need to make a little more effort and make an analogue of the DUMP.COM program for CP / M. This will be a useful action.
>
> Regards
> Andrey Nikitin
Andrey

I can do that -- there are still "guesses" in the definition of "bss" psect (how much data is in it?).
and some other places (are negative relocation additions allowed? are relocations allows
to arbitrary offsets, not just the last data section?) But, I can do a data dumper... email me the
full results of dumping objtomac.obj (fred_weigel@hotmail.com will do). I have only ever used
the Z80 3.09 hitech compiler, so don't really know the msdos variant...
Looking forward to receiving the output that I will match...

FredW

Re: A tasty HI-TECH C treat

<0bb438cb-1bb2-47c9-90c2-cce2ccbb30dbn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:5bc6:: with SMTP id b6mr10454647qtb.392.1620413198312;
Fri, 07 May 2021 11:46:38 -0700 (PDT)
X-Received: by 2002:aca:c30f:: with SMTP id t15mr8138409oif.145.1620413198040;
Fri, 07 May 2021 11:46: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: Fri, 7 May 2021 11:46:37 -0700 (PDT)
In-Reply-To: <d5944f57-4cde-4b67-81b8-404aaf29fafcn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:941c:a000:5d65:5ce5:488c:50a5;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:941c:a000:5d65:5ce5:488c:50a5
References: <f456c7bd-0eec-4cd2-a9b4-24590bfd6ee7n@googlegroups.com>
<7a83abde-b120-4c49-aed8-b587cd44cd01n@googlegroups.com> <d5944f57-4cde-4b67-81b8-404aaf29fafcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0bb438cb-1bb2-47c9-90c2-cce2ccbb30dbn@googlegroups.com>
Subject: Re: A tasty HI-TECH C treat
From: fred_wei...@hotmail.com (fred_...@hotmail.com)
Injection-Date: Fri, 07 May 2021 18:46:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fred_...@hotmail.com - Fri, 7 May 2021 18:46 UTC

On Friday, May 7, 2021 at 2:43:25 PM UTC-4, fred_...@hotmail.com wrote:
> On Friday, May 7, 2021 at 2:12:05 PM UTC-4, nikiti...@gmail.com wrote:
> > пятница, 7 мая 2021 г. в 17:52:27 UTC+3, fred_...@hotmail.com:
> > > A year ago, I created
> > >
> > > https://github.com/ratboy666/mtrel
> > >
> > > This was a source level as to mac conversion to allow hi-tech c to be linked
> > > with L80 (or PLINK-II, or whatever).
> > >
> > > This is not satisfactory because the assembler production from C source
> > > is not always good. And you lose the benefits of ZAS.
> > >
> > > So, I have added objtomac.c which converts OBJ to MAC files which can
> > > be assembled.
> > >
> > > Consider this "alpha" level -- it works for me, but required reversing of
> > > the OBJ files. I would really like to go directly to REL, but this appears
> > > a bit more flexible. Pull requests on github welcome!
> > >
> > > You can use github for any bug reports, or this forum.
> > >
> > > Thanks, and have fun
> > > FredW
> > The structure of the object file of the HI-TECH C compilers is structured in a certain way.
> > Your program is a bit like HI-TECH's DUMP utility. Unfortunately, it is only available in the MS-DOS version of the compilers. It's called DUMP.COM. Its task is to display on the screen the contents of an object file created by the HI-TECH assembler. As far as I understand, it is more universal and allows you to view the contents of object files created for several types of processors. In particular, for the object file of your OBJTOMAC.OBJ program, it shows the following information (I removed some of the output):
> >
> > bash-3.2 $ emu2 DUMP.COM objtomac.obj
> > objtomac.obj
> > 1 IDENT 10
> > Machine = Z80
> > 32 bit order = 0 1 2 3
> > 16 bit order = 0 1
> > 2 TEXT 509
> > data 0 500
> > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> >
> > ... ... ...
> >
> > 7 TEXT 441
> > text 0 432
> > CD 00 00 E5 DD 6E 06 DD 66 07 E5 21 02 00 E5 21 01 00 E5 21 00
> > 00 E5 CD 00 00 C1 C1 C1 C1 DD 75 FE DD 74 FF 11 02 00 B7 ED 52
> > 28 06 21 00 00 C3 00 00 2A 00 00 CB 7C 20 0A EB 21 06 04 CD 00
> > 00 F2 4D 00 21 09 08 E5 CD 00 00 C1 18 DF DD 6E 06 DD 66 07 E5
> >
> > ... ... ...
> >
> > 20 END 2
> >
> > The object file contains 20 records.
> > The first record defines the car type - Z80 and the byte ordering of int and long types. The rest contains information about program segments, names of variables and functions.
> >
> > If you figured out the structure of the object file, then you need to make a little more effort and make an analogue of the DUMP.COM program for CP / M. This will be a useful action.
> >
> > Regards
> > Andrey Nikitin
> Andrey
>
> I can do that -- there are still "guesses" in the definition of "bss" psect (how much data is in it?).
> and some other places (are negative relocation additions allowed? are relocations allows
> to arbitrary offsets, not just the last data section?) But, I can do a data dumper... email me the
> full results of dumping objtomac.obj (fred_...@hotmail.com will do). I have only ever used
> the Z80 3.09 hitech compiler, so don't really know the msdos variant...
> Looking forward to receiving the output that I will match...
>
> FredW

And the post removed my email: try fred(underscore)weigel(at)hotmail(dot)com

Re: A tasty HI-TECH C treat

<ff88f719-bc5b-4245-a243-072b02a7cd0dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:6004:: with SMTP id u4mr11203387qkb.369.1620414830183;
Fri, 07 May 2021 12:13:50 -0700 (PDT)
X-Received: by 2002:a4a:1703:: with SMTP id 3mr8975378ooe.92.1620414829891;
Fri, 07 May 2021 12:13:49 -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, 7 May 2021 12:13:49 -0700 (PDT)
In-Reply-To: <0bb438cb-1bb2-47c9-90c2-cce2ccbb30dbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.37.209.254; posting-account=g8ksUwoAAAC0mgCsQ1LJvKj1k2HoKsbw
NNTP-Posting-Host: 77.37.209.254
References: <f456c7bd-0eec-4cd2-a9b4-24590bfd6ee7n@googlegroups.com>
<7a83abde-b120-4c49-aed8-b587cd44cd01n@googlegroups.com> <d5944f57-4cde-4b67-81b8-404aaf29fafcn@googlegroups.com>
<0bb438cb-1bb2-47c9-90c2-cce2ccbb30dbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ff88f719-bc5b-4245-a243-072b02a7cd0dn@googlegroups.com>
Subject: Re: A tasty HI-TECH C treat
From: nikitinp...@gmail.com (Андрей Никитин)
Injection-Date: Fri, 07 May 2021 19:13:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Андрей Ник - Fri, 7 May 2021 19:13 UTC

пятница, 7 мая 2021 г. в 21:46:38 UTC+3, fred_...@hotmail.com:
> On Friday, May 7, 2021 at 2:43:25 PM UTC-4, fred_...@hotmail.com wrote:
> > On Friday, May 7, 2021 at 2:12:05 PM UTC-4, nikiti...@gmail.com wrote:
> > > пятница, 7 мая 2021 г. в 17:52:27 UTC+3, fred_...@hotmail.com:
> > > > A year ago, I created
> > > >
> > > > https://github.com/ratboy666/mtrel
> > > >
> > > > This was a source level as to mac conversion to allow hi-tech c to be linked
> > > > with L80 (or PLINK-II, or whatever).
> > > >
> > > > This is not satisfactory because the assembler production from C source
> > > > is not always good. And you lose the benefits of ZAS.
> > > >
> > > > So, I have added objtomac.c which converts OBJ to MAC files which can
> > > > be assembled.
> > > >
> > > > Consider this "alpha" level -- it works for me, but required reversing of
> > > > the OBJ files. I would really like to go directly to REL, but this appears
> > > > a bit more flexible. Pull requests on github welcome!
> > > >
> > > > You can use github for any bug reports, or this forum.
> > > >
> > > > Thanks, and have fun
> > > > FredW
> > > The structure of the object file of the HI-TECH C compilers is structured in a certain way.
> > > Your program is a bit like HI-TECH's DUMP utility. Unfortunately, it is only available in the MS-DOS version of the compilers. It's called DUMP.COM. Its task is to display on the screen the contents of an object file created by the HI-TECH assembler. As far as I understand, it is more universal and allows you to view the contents of object files created for several types of processors. In particular, for the object file of your OBJTOMAC.OBJ program, it shows the following information (I removed some of the output):
> > >
> > > bash-3.2 $ emu2 DUMP.COM objtomac.obj
> > > objtomac.obj
> > > 1 IDENT 10
> > > Machine = Z80
> > > 32 bit order = 0 1 2 3
> > > 16 bit order = 0 1
> > > 2 TEXT 509
> > > data 0 500
> > > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > >
> > > ... ... ...
> > >
> > > 7 TEXT 441
> > > text 0 432
> > > CD 00 00 E5 DD 6E 06 DD 66 07 E5 21 02 00 E5 21 01 00 E5 21 00
> > > 00 E5 CD 00 00 C1 C1 C1 C1 DD 75 FE DD 74 FF 11 02 00 B7 ED 52
> > > 28 06 21 00 00 C3 00 00 2A 00 00 CB 7C 20 0A EB 21 06 04 CD 00
> > > 00 F2 4D 00 21 09 08 E5 CD 00 00 C1 18 DF DD 6E 06 DD 66 07 E5
> > >
> > > ... ... ...
> > >
> > > 20 END 2
> > >
> > > The object file contains 20 records.
> > > The first record defines the car type - Z80 and the byte ordering of int and long types. The rest contains information about program segments, names of variables and functions.
> > >
> > > If you figured out the structure of the object file, then you need to make a little more effort and make an analogue of the DUMP.COM program for CP / M. This will be a useful action.
> > >
> > > Regards
> > > Andrey Nikitin
> > Andrey
> >
> > I can do that -- there are still "guesses" in the definition of "bss" psect (how much data is in it?).
> > and some other places (are negative relocation additions allowed? are relocations allows
> > to arbitrary offsets, not just the last data section?) But, I can do a data dumper... email me the
> > full results of dumping objtomac.obj (fred_...@hotmail.com will do). I have only ever used
> > the Z80 3.09 hitech compiler, so don't really know the msdos variant...
> > Looking forward to receiving the output that I will match...
> >
> > FredW
> And the post removed my email: try fred(underscore)weigel(at)hotmail(dot)com
1. A cross compiler for DOS can be downloaded from the Tony Nicholson GitHub page
https://github.com/agn453/HI-TECH-Z80-C-Cross-Compiler
2. To run it, I use the DOS emulator - emu2
https://github.com/dmsc/emu2

It compiled fine for me on mac osx. It allows you to run DOS programs from a linux or mac osx environment.
I will send the full output of the object file to e-mail.

I wish you success.
Andrey Nikitin
volume_up
content_copy

share

Re: A tasty HI-TECH C treat

<9717ba1e-8821-4d5f-9e24-b814425c582cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a0c:f3d4:: with SMTP id f20mr7679682qvm.61.1620416813449;
Fri, 07 May 2021 12:46:53 -0700 (PDT)
X-Received: by 2002:a4a:e4c4:: with SMTP id w4mr9077587oov.68.1620416813129;
Fri, 07 May 2021 12:46:53 -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, 7 May 2021 12:46:52 -0700 (PDT)
In-Reply-To: <ff88f719-bc5b-4245-a243-072b02a7cd0dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:941c:a000:5d65:5ce5:488c:50a5;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:941c:a000:5d65:5ce5:488c:50a5
References: <f456c7bd-0eec-4cd2-a9b4-24590bfd6ee7n@googlegroups.com>
<7a83abde-b120-4c49-aed8-b587cd44cd01n@googlegroups.com> <d5944f57-4cde-4b67-81b8-404aaf29fafcn@googlegroups.com>
<0bb438cb-1bb2-47c9-90c2-cce2ccbb30dbn@googlegroups.com> <ff88f719-bc5b-4245-a243-072b02a7cd0dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9717ba1e-8821-4d5f-9e24-b814425c582cn@googlegroups.com>
Subject: Re: A tasty HI-TECH C treat
From: fred_wei...@hotmail.com (fred_...@hotmail.com)
Injection-Date: Fri, 07 May 2021 19:46:53 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fred_...@hotmail.com - Fri, 7 May 2021 19:46 UTC

On Friday, May 7, 2021 at 3:13:50 PM UTC-4, nikiti...@gmail.com wrote:
> пятница, 7 мая 2021 г. в 21:46:38 UTC+3, fred_...@hotmail.com:
> > On Friday, May 7, 2021 at 2:43:25 PM UTC-4, fred_...@hotmail.com wrote:
> > > On Friday, May 7, 2021 at 2:12:05 PM UTC-4, nikiti...@gmail.com wrote:
> > > > пятница, 7 мая 2021 г. в 17:52:27 UTC+3, fred_...@hotmail.com:
> > > > > A year ago, I created
> > > > >
> > > > > https://github.com/ratboy666/mtrel
> > > > >
> > > > > This was a source level as to mac conversion to allow hi-tech c to be linked
> > > > > with L80 (or PLINK-II, or whatever).
> > > > >
> > > > > This is not satisfactory because the assembler production from C source
> > > > > is not always good. And you lose the benefits of ZAS.
> > > > >
> > > > > So, I have added objtomac.c which converts OBJ to MAC files which can
> > > > > be assembled.
> > > > >
> > > > > Consider this "alpha" level -- it works for me, but required reversing of
> > > > > the OBJ files. I would really like to go directly to REL, but this appears
> > > > > a bit more flexible. Pull requests on github welcome!
> > > > >
> > > > > You can use github for any bug reports, or this forum.
> > > > >
> > > > > Thanks, and have fun
> > > > > FredW
> > > > The structure of the object file of the HI-TECH C compilers is structured in a certain way.
> > > > Your program is a bit like HI-TECH's DUMP utility. Unfortunately, it is only available in the MS-DOS version of the compilers. It's called DUMP.COM. Its task is to display on the screen the contents of an object file created by the HI-TECH assembler. As far as I understand, it is more universal and allows you to view the contents of object files created for several types of processors. In particular, for the object file of your OBJTOMAC.OBJ program, it shows the following information (I removed some of the output):
> > > >
> > > > bash-3.2 $ emu2 DUMP.COM objtomac.obj
> > > > objtomac.obj
> > > > 1 IDENT 10
> > > > Machine = Z80
> > > > 32 bit order = 0 1 2 3
> > > > 16 bit order = 0 1
> > > > 2 TEXT 509
> > > > data 0 500
> > > > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > > >
> > > > ... ... ...
> > > >
> > > > 7 TEXT 441
> > > > text 0 432
> > > > CD 00 00 E5 DD 6E 06 DD 66 07 E5 21 02 00 E5 21 01 00 E5 21 00
> > > > 00 E5 CD 00 00 C1 C1 C1 C1 DD 75 FE DD 74 FF 11 02 00 B7 ED 52
> > > > 28 06 21 00 00 C3 00 00 2A 00 00 CB 7C 20 0A EB 21 06 04 CD 00
> > > > 00 F2 4D 00 21 09 08 E5 CD 00 00 C1 18 DF DD 6E 06 DD 66 07 E5
> > > >
> > > > ... ... ...
> > > >
> > > > 20 END 2
> > > >
> > > > The object file contains 20 records.
> > > > The first record defines the car type - Z80 and the byte ordering of int and long types. The rest contains information about program segments, names of variables and functions.
> > > >
> > > > If you figured out the structure of the object file, then you need to make a little more effort and make an analogue of the DUMP.COM program for CP / M. This will be a useful action.
> > > >
> > > > Regards
> > > > Andrey Nikitin
> > > Andrey
> > >
> > > I can do that -- there are still "guesses" in the definition of "bss" psect (how much data is in it?).
> > > and some other places (are negative relocation additions allowed? are relocations allows
> > > to arbitrary offsets, not just the last data section?) But, I can do a data dumper... email me the
> > > full results of dumping objtomac.obj (fred_...@hotmail.com will do). I have only ever used
> > > the Z80 3.09 hitech compiler, so don't really know the msdos variant....
> > > Looking forward to receiving the output that I will match...
> > >
> > > FredW
> > And the post removed my email: try fred(underscore)weigel(at)hotmail(dot)com
> 1. A cross compiler for DOS can be downloaded from the Tony Nicholson GitHub page
> https://github.com/agn453/HI-TECH-Z80-C-Cross-Compiler
> 2. To run it, I use the DOS emulator - emu2
> https://github.com/dmsc/emu2
>
> It compiled fine for me on mac osx. It allows you to run DOS programs from a linux or mac osx environment.
> I will send the full output of the object file to e-mail.
>
> I wish you success.
> Andrey Nikitin
> volume_up
> content_copy
>
> share

Andrey

Thanks! I got the email. Yes, that is the data I see in the OBJ file. And it confirms that the objtomac.c
should do its intended job just fine!

FredW

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor