lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 9/11/20, Viacheslav Usov <via.usov@gmail.com> wrote:
> On Fri, Sep 11, 2020 at 5:02 PM Egor Skriptunoff
> <egor.skriptunoff@gmail.com> wrote:
>
>> Can this LUA.EXE load external modules?
>> [...]
>
> [...]
> MS-DOS has no such notion

Right. In the DOS days, if we wanted to provide an extension to some
app, we'd write it as a TSR ("terminate and stay resident") and hook
our code to some interrupt handler. The app would call our extension
thus:

  ax = 23   ; some function number.
  bx = ...    ; argument1
  cx = ....   ; argument2
  int 52      ; call our code