BS2 remote code compiling (external memory)
Tone
Posts: 3
Would it be possible to make a program stored in the BS2 eeprom compile "code lines" stored in a remote memory (ex: sdcard through uMMC device) ?
·
Thanks for any help on that matter,
·
·
·
Antoine Levesque
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1000010 1010011 110010BS2
1010010 1001111 1000011 1001011 1010011· 100001ROCKS !
·
·
Thanks for any help on that matter,
·
·
·
Antoine Levesque
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1000010 1010011 110010BS2
1010010 1001111 1000011 1001011 1010011· 100001ROCKS !
·
Comments
Mike Green
//·in the BS2 memory, in some kind of external memory device (like a serial EEPROM or uMMC). This would be
//·slow, but maybe fast enough for your needs.
As for speed needs, i'm patient and it's not a real issue. So to rephrase the question, let's say i wrote code like this one (it's not actual code, just an algorithm)
for dataADR =·1024 to·2047····················· 'external memory adresses
·· read storedDATA, inVariable·················· 'read the external memory, dump in variable
·· execute inVariable······························· 'execute code·from variable ???
next
'data stored exemple
'
DATA···· ( codeStr_01,·· codeStr_02,·· codeStr_03 )
and codeStr_01 could resemble something like a for next or a do loop statement.
Thanks again for any input on this!
Antoine Levesque
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1000010 1010011 110010BS2
1010010 1001111 1000011 1001011 1010011· 100001ROCKS !
·
DATA ("FOR", "<", 30)
DATA ("Other instrucitons")
DATA ("NEXT")
You could do a MASSIVE branch statment like:
(not real code)
If(No idea on addressing data so here's a sudo way)
if data.1 = "for" goto for_loop
for_loop:
if data.2 = "<"
for i < data.3
(handel the middle data)
if data.x = "Next"
Next
Yea.. it could be done
Mike Green