From: <john.gill@quadrics.com>
To: <Piotr.Palka@ascen.pl>, <gcc-help@gcc.gnu.org>
Subject: RE: new asembler command for AVR port
Date: Wed, 21 Jun 2006 15:44:00 -0000 [thread overview]
Message-ID: <30062B7EA51A9045B9F605FAAC1B4F62170EDC@exch01.quadrics.com> (raw)
Two ways maybe:
1: Change binutils. Get hold of binutils source tree and take a look
avr.h. For the binutils-2.15 this looks like:
./binutils-2.15/include/opcode/avr.h
Assembler commands are defined
in the macro AVR_INSN in terms of 16bit opcode, avr port etc. This header shows which
bits of the opcode space are unused.
2: You may be able to just hack an opcode together by just using the gas .hword command
to define your new insn?
eg. In C,
asm volatile (".hword 0xB00B\n");
or in asm in text section.
.hword 0xB00B
Cheers
John
-----Original Message-----
From: Piotr Palka [mailto:Piotr.Palka@ascen.pl]
Sent: 21 June 2006 16:24
To:
Subject: new asembler command for AVR port
Hello,
I need to add one asembler command to AVR port. It could be anything.
Maybe somebody can tell me how to do that? Which file/s I need to change? Do
I need to change some files in binutils?
I think this is quite easy to do.
Thanks in advance.
Best regards,
Piotr Pałka
next reply other threads:[~2006-06-21 15:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-21 15:44 john.gill [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-06-21 15:23 Piotr Pałka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30062B7EA51A9045B9F605FAAC1B4F62170EDC@exch01.quadrics.com \
--to=john.gill@quadrics.com \
--cc=Piotr.Palka@ascen.pl \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).