[Top][All Lists]

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

[avr-gcc-list] GDB5.3 and ret instruction

From: Marko Panger
Subject: [avr-gcc-list] GDB5.3 and ret instruction
Date: Mon, 5 May 2003 20:32:44 +0200
User-agent: KMail/1.5

Hello All !

I am getting some stack pointer problems with GDB5.3 and SimulAVR 

It seems that the RET / RETI instruction is taking just the LSB of the program 
memory address.

My memoty looks like:

$402 : 0x85
$403 : 0x01

Before "ret / reti" instruction is executed my stack pointer points to 0x400 
and since this instruction uses a pre-increment scheme the return address 
should be feched from 0x402, but only 0x85 is fetched and the PC jumps to 
0x10A instead of 0x30A.

Hm...is this a SimulAVR or GDB issue (or mine...) ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]