VM - Virtual machine in Purebasic?

Everything else that doesn't fall into one of the other PB categories.
ricardo
Addict
Addict
Posts: 2402
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

VM - Virtual machine in Purebasic?

Post by ricardo »

Hi,

I used VM in the past to protect code and it works well (Code Virtualizer).

Now i found that someone could creatre something like a VM in Purebasic. Has anybody tried this before?
250 lines of code says in this article

https://www.jmeiners.com/lc3-vm/

Thanks in advance
ARGENTINA WORLD CHAMPION
infratec
Always Here
Always Here
Posts: 6818
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: VM - Virtual machine in Purebasic?

Post by infratec »

You can port this easily, but ...

What do you want with a LC3 'computer' :?:
ricardo
Addict
Addict
Posts: 2402
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: VM - Virtual machine in Purebasic?

Post by ricardo »

infratec wrote: Tue Jul 05, 2022 6:35 pm You can port this easily, but ...

What do you want with a LC3 'computer' :?:
To virtualize like Code Virtualizer that makes difficult to crack the software.
ARGENTINA WORLD CHAMPION
infratec
Always Here
Always Here
Posts: 6818
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: VM - Virtual machine in Purebasic?

Post by infratec »

I think if you write the code in LC3 assembler it is 'unhackable'

Is there a C compiler for LC3 ?
Else you have to write all your code in assembler :wink:
ricardo
Addict
Addict
Posts: 2402
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: VM - Virtual machine in Purebasic?

Post by ricardo »

No, but i dont know assambler.

Its not possible to code a VM in PB and use it in my program to make it difficult to crack?
ARGENTINA WORLD CHAMPION
User avatar
Caronte3D
Addict
Addict
Posts: 1029
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: VM - Virtual machine in Purebasic?

Post by Caronte3D »

You can use the free tool "Enigma VirtualBox"
https://enigmaprotector.com/en/aboutvb.html

Or better "Enigma Protector" (commercial) if you really need a real protection system :wink:

I have used both and they work great.
ricardo
Addict
Addict
Posts: 2402
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Re: VM - Virtual machine in Purebasic?

Post by ricardo »

Thanks, but it looks like it can be done within PB.

Anybody can help with this?
ARGENTINA WORLD CHAMPION
User avatar
fsw
Addict
Addict
Posts: 1572
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: VM - Virtual machine in Purebasic?

Post by fsw »

There is a comprehensive tutorial on the German PureBasic site:

Tutorial in German
Discussion in German
Code of scanner, parser, assembler, virtual machine.

The code is fairly old (2013), so you would have to adapt it to the newest PureBasic version.

But at least you get the idea...

I am to provide the public with beneficial shocks.
Alfred Hitshock
Post Reply