Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#pragma romdata PRODS=0x5000
rom int Productos[]= {70,50,50,100,100,150,20,50,60};
#pragma romdata PRODS2=0x5200
rom char Prods[][2]={
{0,0x01},
{1,0x02},
{2,0x03},
{3,0x01},
{3,0x02},
{4,0x02},
{4,0x03},
{5,0x01},
{5,0x02},
{5,0x03},
{6,0x80},
{7,0x80},
{7,0x80},
{7,0x80},
{8,0x80},
{8,0x80},
{8,0x80},
{8,0x80}};
//to finnish pragma code!
#pragma code
...
sb1 = Prods[3][0];
sb2 = Prods[3][1];
..
//you know, right?
extern rom int Productos[];
extern rom char Prods[][2];
rom char* maPointer;
...
maPointer = 0x5000; //points to some part of the memory
bv = (*maPointer); //read address 0x5000 !!!!
maPointer++; //now points to 0x5001;
//etc
...
//and also
...
(*maPointer) = someValue; //prefills page byte, read the datasheet for actual write in memory!!!
Prods[10][0]=newValue; //prefills page byte, again please read the datasheet for actual write... even it's more complicated with a table... do it with a known pointer