[PicForth] Re: Fixed jtable (was: Re: Re: New lib module -
'libjtable.fs')
Samuel Tardieu
sam at rfc1149.net
Tue Nov 9 08:53:27 CET 2004
>>>>> "David" == David McNab <david at rebirthing.co.nz> writes:
David> As a side note - it would appear that the standard 'ftable'
David> (from which I ripped code for jtable) also suffers from this
David> limitation. Might be worth looking at having 'ftable' also
David> adjust PCLATH.
After looking at the code, I do not think this is needed. Such tables
are always fully included in only one page (end-ftable checks
that). It is composed of:
TABLE:
ADDWF PCL,F
RETLW CHOICE0
RETLW CHOICE1
...
It means that to be able to call TABLE, one needs to have the PCLATH
set to this page already. The situation in your jump tables is
different, because you call other words from there, which is not the
case in data tables.
Sam
--
Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/sam
More information about the PicForth
mailing list