Since you have assembled portions of the kernel as individual programs you must be familiar with the System Development and Application Development manuals.
Changing the BASIC interpreter to a stand-alone executable requires a little work, but can be done (consider the attached an example, not a finished product). As discussed in the references, to eliminate the undefined messages the standard include file (mikedev.inc) needs to be added to the source.
We also need to supply support code to the detached program that was previously provided by the kernel. To make it stand out in the example, the added code is offset with %if ... %endif.
Hope this is helpful.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mikeos/592b3c20-c600-407b-be46-75d5ab169e4dn%40googlegroups.com.