Last updated: May 12, 2006
Evolve 4.0
VOLVE    4.0

KFORTH Interpreter Dialog

This dialog allows you to experiment with KFORTH programs. You can also develop new genetic programs, and verify that they compile.

File Buttons

NOTE: If you modify something in the Kforth Source pane you will be prompted to save if you try to exit.

Debugger Buttons

The KFORTH Interpreter allows the special organism instructions like OMOVE, LOOK, EAT, etc... Inside of the interpreter these instructions are just no-op's. But at least you can examine real genetic programs and single step through them (even though they won't actually do anything).


KFORTH MACHINE

This section of the dialog shows the current state of the kforth machine. All 10 registers R0 ... R9 are shown. CB is the current code block being executed. PC is the current program counter. Both CB and PC are 0 based numbers. Code block 0, refers to the code block with the label "main:". PC is relative to the current code block being executed.

The data stack shows the elements currently on the data stack. The top most item represents the "top" of the stack.

The call stack shows the saved locations for cb and pc. This stack allows KFORTH to return from a subroutine call.


KFORTH INTERPRETER

This dialog allows you to execute generic KFORTH program (that is, KFORTH programs that do not use CELL instructions). However "dummy" versions of the CELL instructions are provided, so that genetic programs may be explored using this dialog without getting compiler errors. You can even step thru the code, but since all the CELL instructions "fail" you won't learn much.


KFORTH Instruction Dialog

If you click on [Instructions] this pop-up dialog will appear:

This dialog lets you browse the list of available instructions.


Function Key Summary