RE: new asembler command for AVR port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx]
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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux