Skip to main content
murielle
Associate II
July 1, 2003
Question

Initialize RAM

  • July 1, 2003
  • 3 replies
  • 868 views
Posted on July 01, 2003 at 12:38

Initialize RAM

This topic has been closed for replies.

3 replies

murielle
murielleAuthor
Associate II
July 1, 2003
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
Visitor II
July 1, 2003
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
murielleAuthor
Associate II
July 1, 2003
Posted on July 01, 2003 at 12:38

It's perfect!

Thanks,

Murielle