Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Virtual Machine

Name: Anonymous 2011-09-01 1:28

Hello /prague/

I'm working on implementing a virtual machine of my own design. I started by writing the ALU, and I decided that it should operate on 32 bit words. It allows for many of the basic functions (NOT, AND, OR, XOR, >>, <<, +, -, *, /).

I am entirely new to designing machines (I'm a college sophomore.) and I ran into the problem of representation of floating point data. Is this implemented directly into the hardware of computers, or does software manipulate words to create floating point number manipulation higher up?

Name: Anonymous 2011-09-01 18:38

>>8
Perhaps that's a problem. My CPU is designed to only have 1 register... It's just a toy though.

The processor emulator will be able to interpret and execute those instructions, it's just that I wanted to organize the code used to execute those instructions, so I wrote an ALU emulator. IF they organize it that way in real machines, why not on the VM?

>>11
That's what I was hoping to hear, and how I started implementing it. Thanks.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List