Jump to content

Computer Emulated in Excel


LukeTim

Recommended Posts

I hadn\'t planned on this, but I just thought I might as well stick this on here and see if anyone does anything interesting with it.

It\'s a computer I have emulated in Excel. You can see all the ROM, the RAM and the registers in the CPU... and you can program it using a little instruction set I designed.

http://dl.dropbox.com/u/2434899/CPU.xlsm

At the moment it just computes the Fibonacci sequence, and stores each value in the first RAM location.

The instruction set is explained there, and I will probably add some extra features to it later on...

You\'ll need to enable the macros, but don\'t worry. It is safe. I wrote it all myself.

I just did this for fun, but I figured if I let other people at it they might do some cool stuff with it, and maybe even add some cool stuff.

I had planned on doing some I/O... which would require Interrupts. But that\'s going to take a fair amount of time.

Link to comment
Share on other sites

Making a computer in Minecraft takes way more time and has been done to death.

I think I\'ll just keep doing the Excel stuff. Might add a GPU and a display... for the lulz. At the very least an FPU.

Link to comment
Share on other sites

On Windows 95\'s Excel, if you put a certain formula into a certain cell, it would bring up a flight simulator.

Sweet. Didn\'t know that. Can\'t have been terribly good in 1995, though.

I\'ve added pointers (via the address registers) and changed the program so that it now fills up the RAM (like an array) with the fibonacci sequence.

Link to comment
Share on other sites

There is a problem with the reset button. Looks like there is a runtime error.

Windows 7 Home

Excel 2010

I imagine you clicked reset whilst the computer was automatically clocking?

Yeah, for whatever reason, Excel doesn\'t seem to be able handle a call to a macro during another call to some other function. And so, the whole thing is unstable whilst the thing is clocking automatically. You have to carefully switch the autoclock off (wait until the clock signal is mid transition and then click it, otherwise it might catch the macro call in the middle of the transition function and it gets very unhappy).

I\'m not sure if there\'s anything I can do about it at the moment. I will look into it. For now, you\'ll just have to be careful or manually clock.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...