2011-01-28 by Ritchie Thai
In MPASM, tables can be created using the DT (define table) directive. The tables created in this was are all placed into a region of memory on each page for tables. The memory on each of these pages for tables is limited to 200 characters.
This pseudo table generator will generate code that uses program memory instead, allowing more than 200 characters. It uses up 2 times the memory of a regular table and runs 2 times slower, but if memory is abundant, this allows for less page switching or extra tables.
An extra variable/byte of memory used by the table must be reserved for this code to work.
show: about this page
table name:
table data:
required variable declaration:
code: