zxcc segfaults running L80.COM

56 views
Skip to first unread message

Peter Onion

unread,
Oct 21, 2025, 11:41:35 AMOct 21
to RC2014-Z80
I'm trying to run M80 and L80 under zxcc on my Pi5.  M80 runs fine:

petero@pi-nvme:~/RC2014/Orton3C/ROM $ zxcc M80.COM test1,test1=test1

No Fatal error(s)


But L80 causes zxcc to segfault 

petero@pi-nvme:~/RC2014/Orton3C/ROM $ zxcc L80.COM test1,test1/n/x/e

Link-80  3.44  09-Dec-81  Copyright (c) 1981 Microsoft
Segmentation fault

But if I run L80 without command line parameters it works:

petero@pi-nvme:~/RC2014/Orton3C/ROM $ zxcc L80.COM

Link-80  3.44  09-Dec-81  Copyright (c) 1981 Microsoft

*test1
Data 0103 010E <   11>

53807 Bytes Free

*test1/n/x/e

Data 0103 010E <   11>

53807 Bytes Free
[0400 010E     1]


Is there a fix for zxcc so it will run L80 with command line options ?

PeterO

Wayne Warthen

unread,
Oct 21, 2025, 2:01:14 PMOct 21
to RC2014-Z80
Odd, I will try to replicate this.  Need a few hours before I can work on it though.

-Wayne

Wayne Warthen

unread,
Oct 21, 2025, 2:54:21 PMOct 21
to rc201...@googlegroups.com
OK, I was able to recreate the segmentation fault.  I think you need to add a "-" in front of your L80 parameters.  I.e.:

zxcc L80.COM -test1,test1/n/x/e

This solved it for me.

Thanks, Wayne

Peter Onion

unread,
Oct 21, 2025, 3:49:21 PMOct 21
to RC2014-Z80
Thanks Wayne that does the trick :-)

But how did you find that solution ?

PeterO

Wayne Warthen

unread,
Oct 21, 2025, 3:56:26 PMOct 21
to RC2014-Z80
On Tuesday, October 21, 2025 at 12:49:21 PM UTC-7 Peter Onion wrote:
Thanks Wayne that does the trick :-)

But how did you find that solution ?

Have you looked at the zxcc documentation?  The command line usage is tricky.  The documentation is included with the RomWBW distribution in /Tools/zxcc/zxcc.html.

Thanks, Wayne 

Peter Onion

unread,
Oct 21, 2025, 4:06:09 PMOct 21
to RC2014-Z80
Thanks, Wayne.  

No I had not found that documentation.  
But now I don't understand why my M80  invocation like this works without needing a "-" :

zxcc M80.COM test1,test1=test1

Oh well, at least I can get on with what I wanted to do now.

Thanks again,
PeterO

Wayne Warthen

unread,
Oct 21, 2025, 4:09:24 PMOct 21
to RC2014-Z80
It is very messy and will depend on how the application does it's command line parsing.  *Sometimes* omitting the "-" will be OK, but definitely better to follow the rules, so you should use the "-" for M80 as well.

Thanks, Wayne

Reply all
Reply to author
Forward
0 new messages