DexVM Virtual Machine Hello everyone,
This topic's background has been lost in the Forum catastrophe, however basically I'm trying to develop a virtual machine that will be cross-compatible with multiple platforms. I'm targetting small architecture machines like Microcontrollers and low-end processors, and the original full implementation will be provided for DexOS. I have spent some time on the "hardware" description of the VM, here are some bullet points:
The instruction set will be RISC-like, in that all instructions are 1 byte followed by parameters. Hopefully only ~ 80 instructions will be necessary.
There will be 4 general purpose registers. Size is TBD.
There will be a "software Interrupt" defined, with the subroutine number (0-255) in the first register. The other 3 registers will hold all other data for the routine. This will be the gateway to allow use of system routines almost directly. (They will act like a generic BIOS, allowing access to routines that all OS's should be able to implement simply)
256 ports will be defined, most user space, a few rigid, like Standard IO, PIO, SIO, etc.
I'm using a dial-up connection now, so a white sheet will be uploaded some time next week with details. Of course all criticism is welcome.
Dex- 03-27-2008
Look for to that tonyMac and like the RISC-like :) .