Hi, you may want to make a procedure - something like poller() which is not part of the interpreter but is in the main program. This poller will poll for the bits that arive and probably store them in a buffer and set flag that these are available. Normally the poller is called in main loop of the main program. After that another part of main program will handle the bits. When in interpreter, the implementation routines of interpreter commands must make call to poller() too. How frequently - as needed and as possibly. Interpreter may execute one logical operation per call etc. And you may try to implement something like cache of EEPROM in RAM. Hope this helps. Ivan Cenov okto7@botev.ttm.bg ICQ: 17221948 http://www.geocities.com/SiliconValley/Network/9276/ Do what have to do, let happens what it wants. -----Original Message----- From: Andy Kunz To: PICLIST@MITVMA.MIT.EDU Date: 03 ݏ 1998 ., ֌ݘ 21:25 Subject: Interpreter Engine >I posted this yesterday, but no takers. Maybe I should have said something >to get your ire up so you could flame me? > >I need an interpreter for a 14-bit core which can be incorporated as part >of a time-critical program which already exists. > >My main program bit-bops data at 62.5Kbps, but on occasion I need to be >able to go off and execute an EEPROM-resident script, but can never get >stuck in the script (that is, it needs to return to the caller after every >"instruction" even if it doesn't complete a logical operation). > >A compiled BASIC or FORTH engine would be just the ticket, but I need one >which is smart enough to realize it's not the master of the chip, and which >can be linked in to a HiTech C program, preferably. (Actually, C source >would be optimal). > >Something along the lines of Jack Crenshaw's Sweet that he's been doing in >ESP. > >Anybody have any experience with anything available? > >Thanks! > >Andy > >================================================================== >Andy Kunz - Statistical Research, Inc. - Westfield, New Jersey USA >================================================================== >