how to load the save the value and upload back when it turn on.
Posted
by kiki
on Stack Overflow
See other posts from Stack Overflow
or by kiki
Published on 2009-07-28T03:53:22Z
Indexed on
2010/03/13
18:35 UTC
Read the original article
Hit count: 288
assembly
void Load(void)
{
unsigned char j,*flash,free;
unsigned int bank,siz;
asm lda 0xA100;
asm sta flash_s;
flash = &CT_r;
bank = 0xA101;
siz = 1;
for(j=0;j<=siz;j++) {
asm lda bank;
asm sta free;
free=*flash++;
bank=bank+1;
}
asm lda 0xA103;
asm sta Ln_s;
asm lda 0xA104;
asm sta Scrl_s;
© Stack Overflow or respective owner