Claus Beckenbauer

HCS08QE8 - SP manipulation - Code Warrior 6.1

Discussion created by Claus Beckenbauer on May 27, 2008
Latest reply on May 27, 2008 by bigmac
Hi all,

I want to manipulate the stack pointer with an macro.

I tried this with the following code which doesn't work.

#define __SetSP( x ) __asm LDHX #x; __asm TXS;

error message (C18103: Factor exptected).

Have anyone an solution to do this?

cb


Message Edited by ef24096 on 2008-05-27 12:13 PM

Message Edited by ef24096 on 2008-05-27 12:13 PM

Outcomes