RetroBrew Computers Forum
Discussion forum for the RetroBrew Computers community.

Home » RBC Forums » General Discussion » Assembler (SW ?)
Assembler (SW ?) [message #9295] Mon, 25 October 2021 12:16 Go to next message
curbie is currently offline  curbie
Messages: 55
Registered: June 2021
Member
Has anyone recompiled the CP/M-68 assembler "C" source code?

The reason for this question is, I might need to cross assemble 68000 to 68000 code, and yeah I know that sounds ridiculous, but my vintage computer uses a different set of 68000 assembler mnonomics, some opcode formats are also different.

Curbie
Re: Assembler (SW ?) [message #9304 is a reply to message #9295] Wed, 27 October 2021 12:50 Go to previous messageGo to next message
curbie is currently offline  curbie
Messages: 55
Registered: June 2021
Member
OK, I downloaded the Alcyon Corporation AS68 assembler package written in "C", which is supposed to be the package that created AS68 for CP/M-68k... as68.h, cout.h, ctype.h, klib.h, machine.h, machine.68k, as68init.c, dir.c, expr.c, main.c, misc.c, pass1a.c, pass2.c, strncmp.c, symt.c, version.c, make.sum, relink.sub, then ran "make B:" and I can't track down the first error:

C>B:C068 B:X.I B:X.IC B:X.ST
"", * 0: usage: c068 source link icode strings [-e|-f] [-w] [-T]
note: It's only creating X.I in B:.

searching "The C Language Programming Guide for CPIM-68K" and "c068" "icode" didn't turn up anything useful.

Do any "C" people know what's going on here?

Curbie
Re: Assembler (SW ?) [message #9313 is a reply to message #9304] Fri, 29 October 2021 19:22 Go to previous messageGo to next message
coredump is currently offline  coredump
Messages: 33
Registered: January 2020
Location: Germany
Member
curbie wrote on Wed, 27 October 2021 21:50

[...]
C>B:C068 B:X.I B:X.IC B:X.ST
"", * 0: usage: c068 source link icode strings [-e|-f] [-w] [-T]

[...]

searching "The C Language Programming Guide for CPIM-68K" and "c068" "icode" didn't turn up anything useful.

Do any "C" people know what's going on here?

Curbie
Hi Curbie,

not that I am a 'c'-people, and it's some 35 years ago that I used CP/M-68k somewhat frequently.
But what You got is simply the usage message from the compiler pass.

C language programming guide, Page D-12:
*line no, usage:c068 source asm str
The syntax of the C compiler command line is incorrect. The correct syntax is
given in the error message. Reenter the command line using a valid syntax.

For sure I don't know exactly what's the problem.
But if some guesswork is allowed:

1) The Manual is for CP/M-68k Ver. 1.1.
2) Your Makefile + sources are from Ver. 1.1 days, too.
3) You are using the compiler from Ver. 1.3
4) The calling convention for the pass C068 has changed.

Having a look into the Makefile for the assembler in Ver. 1.2:

$2pip machine.h=machine.68k

$2cp68 -i 0$1 dir.c $1x.i
$2c068 $1x.i $1x.1 $1x.2 $1x.3 -f
era $1x.i
$2c168 $1x.1 $1x.2 dir.s
era $1x.1
era $1x.2
$2as68 -l -u -f $1 -s 0$1 dir.s
era dir.s

it seems it already has changed in Ver. 1.2.

But nowadays there is a version of the make utility available that comes with the CP/M-68K images.
Maybe You have it already on Your System. It should be much simpler to use it instead of the submit file.

Just in case I'm not too far from the facts with my guesswork: You might be much better off with newer sources.

Best regards
Detlef
Re: Assembler (SW ?) [message #9314 is a reply to message #9313] Sat, 30 October 2021 06:38 Go to previous message
curbie is currently offline  curbie
Messages: 55
Registered: June 2021
Member
Detlef,

Thanks, lots of good stuff for me to chase in your post.

Curbie
Previous Topic: 80186 8-bit ISA Single Board Computer (SBC-188 derivative)
Next Topic: computing file size in CP/M 2 or later


Current Time: Mon Mar 24 23:23:26 PDT 2025

Total time taken to generate the page: 0.03531 seconds