Fathom This

posted in The Broken Mind
Published February 11, 2009
Advertisement
I am either too much of a loser or just too dumb too code anything else (or both), so I have been working on an emulator for a VIRTUAL cpu that I made up. It is extremely simple. It has a 8-bit wide data bus and a 16-bit wide address bus. It is based off of the virtual CHIP-8 (without the game aspects) and the infamous Z80.

Yes, this is 100% useless..but I have my reasons. Anyways, I have completed the majority of the instruction set. Including basic math ops, control flow, and bit manipulation. There are no interrupts or input/output instructions as of yet. Also almost all of the instructions act on 8-bit data and there are no 16 bit registers, that is something that still needs to be worked on. There are 16 8-bit registers, R0-RF.

The reason for this project is to setup an enviroment, though its virtual, that will allow me to work on Operating System concepts on a very simple 8-bit system.. and to hold me over until my AVR that I ordered gets here.

I will probably finish the instruction set, add some 16-bit registers, and then have the emulator hook any JMPs to locations in the first sector of memory, as to simulate a BIOS call. That way I can get started working on some OS stuff.. or what will more likely happen: rewrite the emulator after I find all the nasty stuff.

Can you say useless? :)
Previous Entry Code Has Errors
Next Entry Fathom Update
0 likes 1 comments

Comments

DWN
I know we all have our pet projects, but I was wondering if you might be interested in developing a 32b SoC based on the ARMV4. I've been considering using an FPGA softcore - opencores.org has a few (aeMB, openFire, "arm core", ZPU) - along with some on-chip memory and controllers. I'd be interested to know what you think of such a notion.
February 12, 2009 12:39 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

26 Games 26 Weeks

1613 views

Celenite

1162 views

Im back...again!

1010 views

Tunnel Syndrome

1276 views

Borderlands

1187 views

First Flash Game

982 views

First Flash Game

1281 views

Bullet holes? Yum!

1093 views

Game 2

1043 views

New Project

900 views
Advertisement