In theory it should be possible, but I wouldn't know where to start.
I guess you would need to create a virtual machine or a way to interpret x86 code.
In either case I would use C/C++, rather than Java(B4A), since performace wise, it's a lot faster.
Anyway, good luck, I hope someone with more expertise than me will be able to help you.