On 2/5/11 11:22 PM, Steven Hirsch wrote:
    Can you elaborate just a wee bit on how the
 script talks to hardware? 
 The script doesn't talk to hardware directly. Libdiscferret provides
 the hardware interface layer, in the form of bit-twiddling (actually
 register POKEs and PEEKs). The Lua script takes a parameter set from
 the application (current head, track and sector, etc.) and converts
 these into a pin state. 
 
 I presume Lua has a C/C++ API to create the necessary bindings, though,
 right? 
 
   Lua has a nice C API, I use it a lot at work.  Driving the Lua
interpreter from C and collecting variable data back to C is
particularly easy.  (forgive me for jumping in, but I just worked in
this a few days ago)
             -Dave
--
Dave McGuire
Port Charlotte, FL