This VM developed for criptographyc purposes. I must note, when I tell about VM, then I mean a family of similar virtual machines. The following VM is officially approved iridium sample in vacuum for use in the examples. VM size varies in ranges about 700 bytes.
Architecture:
- Two 32-bits stack - data and return
- VM size varies in ranges about 700 bytes.
- Every VM is unique because unique opcodes, unique fiels and unique functions number
- Access to memory can be in Bytes, Words (2 Bytes) and DWords (Double Words, 4 bytes)
picovm.inc
picovm.inc
Characteristics of VM stored in file picovm.settings.json (JSON format):
Virtual machines generator (written in JS):
Examples
For shorting source code I using next macros:
Crypto algorithm RC4:
Edited by 0xDADA11C7, 12 December 2014 - 09:42 PM.