cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize RAM

murielle
Associate II
Posted on July 01, 2003 at 12:38

Initialize RAM

3 REPLIES 3
murielle
Associate II
Posted on July 01, 2003 at 05:16

I use ST7FLITE05.

I want to initialize all the RAM with zero at the beginning of my application.

How to do? (code in assembler language?)

Thanks,

Murielle

simonharrison9
Associate II
Posted on July 01, 2003 at 07:09

Hi,

Try this:

ld X, #64

lp

clr ($7f,X)

dec X

jrne lp

this only clears $80 - $bf, it does not cross into the stack area

hope this helps,

regards

Simon

[ This message was edited by: sjh on 12-11-2003 16:25 ]
murielle
Associate II
Posted on July 01, 2003 at 12:38

It's perfect!

Thanks,

Murielle