Can I assume tables cannot contain word size data, only byte size data? Could not find any ref. to data type size "in" the table itself. Example:
Dim temp as word
ReadTable my_table, 5, temp
Table my_table 500 502 504 606 600 602 604 700 end table
Data tables could only store bytes, but I've made a few alterations and now tables can also store word values. No need to define the type of the table, GCBASIC will automatically detect whether the table holds bytes or words.
Updates are in the usual place, http://gcbasic.sourceforge.net/newfiles/update.zip or http://gcbasic.sourceforge.net/newfiles/update-nochipdata.zip . That code snippet you posted should be fine.
Thanks Hugh, this will come in very handy on my current project. I'll test it out tonight.
Mz
Log in to post a comment.
Can I assume tables cannot contain word size data, only byte size data?
Could not find any ref. to data type size "in" the table itself.
Example:
Dim temp as word
ReadTable my_table, 5, temp
Table my_table
500
502
504
606
600
602
604
700
end table
Data tables could only store bytes, but I've made a few alterations and now tables can also store word values. No need to define the type of the table, GCBASIC will automatically detect whether the table holds bytes or words.
Updates are in the usual place, http://gcbasic.sourceforge.net/newfiles/update.zip or http://gcbasic.sourceforge.net/newfiles/update-nochipdata.zip . That code snippet you posted should be fine.
Thanks Hugh, this will come in very handy on my current project.
I'll test it out tonight.
Mz