This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Z80 Compile
- From: Ian Lance Taylor <iant at google dot com>
- To: Nick Kemp <nrkemp at hotmail dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 29 Jan 2014 11:41:36 -0800
- Subject: Re: Z80 Compile
- Authentication-results: sourceware.org; auth=none
- References: <BLU174-W33997A74136A4124F78C28C0AC0 at phx dot gbl>
On Wed, Jan 29, 2014 at 9:01 AM, Nick Kemp <nrkemp@hotmail.com> wrote:
> I'm
> trying to make a gameboy game using the gas assembler and
> was trying to set the target cpu as z80 with the -z80 option but I get
> an "unrecognized option -z80" error when assembling. The command that I
> ran to compile was:
>
> as -z80 <filename.s> -o <filename.o>
>
> I have looked through the manual and the webpage for how to do this but I
> can't find an answer. Could somebody explain to me if the assembler can
> actually compile a z80 object file and if it can could you tell me how? Or am I just misinterpreting the manual when it says that you can set the target platform?
You need to rebuild the assembler, using --target=z80 (or something
like that) on the configure line. See binutils/README.
There is no -z80 option for an assembler not configured for the z80
target; I'm not sure where you saw that.
Ian