This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Z80 Compile


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]