3

I was just wondering if anybody here has written or knows where I can find a simple virtual machine written in x86 assembly, preferably Fasm, but anything would serve as an example as long as it is simple or at least well commented. Thank you in advance.

Seki
  • 11,135
  • 7
  • 46
  • 70
  • What's the [python] tag for? What kind of virtual machine? Can you explain what you're trying to do? – Carl Norum Mar 24 '11 at 04:48
  • When You Emphasize Each Word It Makes It Harder For Us To Locate The Salient Points. how simple can it be? would a brainf*ck interpreter qualify as a VM? – jcomeau_ictx Mar 24 '11 at 04:51
  • I Want To Write An Operating System Based On The Python Programming Language. It's Kernel Will Be Written In Fasm, Processes, Threads, etc. Are All Managed From Python Code. Te GUI Library Will Be Part Of Te Kernel But Window Managers etc. Would All Use Tkinter. I Want One Written In Fasm So I Can Rewrite A Subset Of Python To Use It, Then Use This New Python Dialect To Write An Assembler, So It WouldBe A Self Hosting Operating System – mason swanson Mar 24 '11 at 06:42

2 Answers2

4

A VM written in FASM? Hmm, the closest project that I can think of is RevaForth, an implementation of Forth originally written in FASM. The author has since switched to NASM, but that is not much different from FASM.

Martin
  • 37,119
  • 15
  • 73
  • 82
1

I did something like that in the past for a software protection. A great resource is definitely this essay from anormal/kindergarten on the great and still relevant +Fravia website.

http://www.woodmann.com/fravia/new_anor.htm

Spyros
  • 46,820
  • 25
  • 86
  • 129