Steven Wheeler

Erroneous illegal instruction?

Discussion created by Steven Wheeler on Jun 15, 2011
Latest reply on Jun 16, 2011 by TomE

I'm trying to work up GCC and Newlib ports for the 68332 to support a legacy product, and my "Hello, world" program is dying on an illegal instruction trap. The disassembler in the JTAG debugger I'm using says the instruction pointed to by the exception frame is "ASR D1," which looks like an incomplete disassembly. The instruction itself is 0xE8C1, which, according to my references, is an "ASR.L #4,D1" instruction, and ought to be completely legal.

 

Anyone got an idea why I'm seeing this, and what I can do about it?

 

Thanks,

 

wheels

Outcomes