The program is 120 lines long and contains of two classes. In the GUI class, the tkinter widgets are drawn which is the treeview for displaying the memory and the input textfield. The VM class handles the Virtual machine itself. It contains of two major methods, namely fetch() for retrieving the next command and execute() for change the register-set and moving to a new address. The overall system emulates a complete computer, or to be more specific a stackbased virtual machine which follows the Forth paradigm. Apart from simple commands like “+” and “drop” no further actions are possible. That means, only a small subset of the needed amount of opcodes is available in the prototype.
En esta página del sitio puede ver el video en línea Forth Virtual machine interpreter written in Python/tkinter de Duración hora minuto segunda en buena calidad , que subió el usuario Manuel Rodriguez 16 December 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 343 veces y le gustó 5 a los espectadores. Disfruta viendo!