[Sdcc-user] stm8 sdas : variable problem

2014-09-05 Thread remi
Hello SDCC : stm8 3.4.1 #9068 (Sep 5 2014) (Linux) I dont see the difference between this : I have _lcdchar declared by : which seems not working, at least the way variables are to mee in assembly ... .area OSEG _varOne: .ds 1 _lcdchar: .db 1 .are

Re: [Sdcc-user] stm8 sdas : variable problem

2014-09-05 Thread remi
Hi, and thx :) I tryed this .area DATA _varOne: .ds 1 _lcdchar: .db 1 .area CODE .include "fcnt.inc" _prog: ; init port D MOV PD_DDR, #0b11 ... , but the flasher complains about "Determine FLASH area Writing In

Re: [Sdcc-user] stm8 sdas : variable problem

2014-09-05 Thread remi
Thanks! I finally opted to put everything in one asm file , So i could use the DATA block . It all works . Have a great day Le 06.09.2014 01:39, Bin Shi a écrit : > STM8's compiler make a function puts its all local & temp vars on its > stack. > > However, it seems the only reason is th

Re: [Sdcc-user] stm8 sdas : variable problem

2014-09-05 Thread Bin Shi
STM8's compiler make a function puts its all local & temp vars on its stack. However, it seems the only reason is the var is overwritten. Erik Petrich 编写: > > >On Fri, 5 Sep 2014, r...@remi.lu wrote: > >> Hello >> >> SDCC : stm8 3.4.1 #9068 (Sep 5 2014) (Linux) >> >> I dont see the difference b

Re: [Sdcc-user] stm8 sdas : variable problem

2014-09-05 Thread Erik Petrich
On Fri, 5 Sep 2014, r...@remi.lu wrote: > Hello > > SDCC : stm8 3.4.1 #9068 (Sep 5 2014) (Linux) > > I dont see the difference between this ( A and B ) : > > I have _lcdchar declared by : > > .area OSEG > _varOne: > .ds 1 > _lcdchar: > .db 1 > > .area CSEG > > . > .which seems not working

[Sdcc-user] stm8 sdas : variable problem

2014-09-05 Thread remi
Hello SDCC : stm8 3.4.1 #9068 (Sep 5 2014) (Linux) I dont see the difference between this ( A and B ) : I have _lcdchar declared by : .area OSEG _varOne: .ds 1 _lcdchar: .db 1 .area CSEG . .which seems not working, at least the way variables are to mee in assembly ... . A) ;tr