Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

CLZ instruction

CLZ instruction

2004-09-04 by bobbruce000

When I try to execute the CLZ instruction,
I get an undefined instruction exception.
According to the ARM docs, the CLZ insn
is supposed to be implemented on ARM5 and
above, and LPC21xx are ARM7s.  Is this
instruction supposed to work?

RE: [lpc2000] CLZ instruction

2004-09-04 by Paul Curtis

You're mixing architecture (ARMv5) with device (ARM7).  I believe most
ARM7s are v4[T].  v5 is ARM9 (at least).  Look at the sheet for your
device to find which architecture it implements.

-- Paul.
Show quoted textHide quoted text
> -----Original Message-----
> From: bobbruce000 [mailto:bobbruce000@...] 
> Sent: 04 September 2004 19:39
> To: lpc2000@yahoogroups.com
> Subject: [lpc2000] CLZ instruction
> 
> When I try to execute the CLZ instruction, I get an undefined 
> instruction exception.
> According to the ARM docs, the CLZ insn
> is supposed to be implemented on ARM5 and above, and LPC21xx 
> are ARM7s.  Is this instruction supposed to work?
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> --------------------~-->
> $9.95 domain names from Yahoo!. Register anything.
> http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------
> ------~-> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
>

Re: [lpc2000] CLZ instruction

2004-09-04 by Robert Adsett

At 07:39 PM 9/4/04 +0000, you wrote:
>When I try to execute the CLZ instruction,
>I get an undefined instruction exception.
>According to the ARM docs, the CLZ insn
>is supposed to be implemented on ARM5 and
>above, and LPC21xx are ARM7s.  Is this
>instruction supposed to work?

You are the victim of an unfortunate choice of naming convention used by ARM.

 From http://www.arm.com/pdfs/DVI0027B_7_R3.pdf pg11

"The ARM7TDMI processor core implements the ARMv4T Instruction Set 
Architecture (ISA)."

Note that according to my copy of the ARM Architecture Reference Manual 
(ARM ARM?) that the newest architecture version is 5.

Robert


" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.