Good news! After installing the nightly build I was able to get my helloworld.c 
program to compile and RUN​ in M100 mode.

I can also compile it for 8080 CP/M and run it in an emulator, but no dice on 
real M100 hardware in REXCPM. I tried compiling for both 8080 and 8085 but they 
both crash on the M100.

zcc +m100 -subtype=default test.c -create-app

zcc +cpm -clib=8080 te.c -create-app -subtype=z80pack --vti

zcc +cpm -clib=8085 test.c -create-app -subtype=z80pack --vti

For now, I am happy just to see it work.

Sent with [Proton Mail](https://proton.me/) secure email.

On Monday, October 16th, 2023 at 2:58 PM, John R. Hogerhuis <[email protected]> 
wrote:

> Mostly just interested in 8085 optimized code for use with the standard ROM.
>
> The thing I noticed was that they have gone beyond the 8080 and used 8085 
> specific instructions including the undocumented instructions. Which should 
> be pretty efficient for handling register and stack relative variables.
>
> https://feilipu.me/2021/09/27/8085-software/
>
> -- John.
>
> On Mon, Oct 16, 2023, 11:33 AM Tom Hoppe <[email protected]> wrote:
>
>> John,
>>
>> I have toyed with this, but have not successfully gotten it to work.
>>
>> At least the Model 100 page looks informative:
>>
>> https://github.com/z88dk/z88dk/wiki/Platform---M100
>>
>> zcc +m100 -subtype=default program.c -create-app
>>
>> I was more interested at the time in compiling for 8085 CP/M as I thought it 
>> would be fun to code something that works specifically with the M100's 
>> screen.
>>
>> I think I was just using:
>>
>> zcc +cpm -clib=8080 adv_a.c
>>
>> My "hello world" executable locked up my machine. I will have to try this 
>> again when time allows.
>>
>> Were you interested more in native M100 development?
>>
>> P.S. As a sidenote...I discovered this little CP/M emulator that runs under 
>> Linux that works great:
>>
>> https://github.com/jhallen/cpm
>>
>> It should be easier to test things at least.
>>
>> -Tom
>>
>> Sent with [Proton Mail](https://proton.me/) secure email.
>>
>> ------- Original Message -------
>> On Saturday, October 14th, 2023 at 6:37 PM, John R. Hogerhuis 
>> <[email protected]> wrote:
>>
>>> I was reading that z88dk c compiler now supports 8085.... Anyone used it 
>>> with our machines?
>>>
>>> -- John.

Reply via email to