Hello everyone, I am currently taking up a project of making a Virtual Machine. I was wondering if anyone has any tips on making Bytecode interpreters, and Virtual machines.
I am not really basing it on anything, I am just making a VM with 640k memory and about 8 32 bit registers. I sort of have my (somewhat) instruction set, and I was wondering if it makes sense. I would post it at the moment but it is on my other computer that is out of access because I am on a trip. I am wondering if there is a way to possibly edit C++ ints in binary, like you can with Hex and Octal(Obviously Decimal also). Or do I need to use AND and check the bits (e.g. 10111001(185) AND 10010101(149) = 10010001(145) and then
if((185 & 149)==145){
//Do code "145"
}
)