Hmm, it escapes me

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
OrOS
Member
Member
Posts: 143
Joined: Sat Sep 08, 2007 11:26 pm
Location: Canada

Hmm, it escapes me

Post by OrOS »

I remember reading about a user on here was working on his own emulator for x86. Does anyone remember who this was?
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: Hmm, it escapes me

Post by Brynet-Inc »

OrOS wrote:I remember reading about a user on here was working on his own emulator for x86. Does anyone remember who this was?
There have been several such members, a few have abandoned their projects.. others have just downright disappeared. ;)

Anyway, the 3 projects I know of are:
http://sourceforge.net/projects/x86lib/
(Currently maintained by.. hckr83, sorta..)

http://sourceforge.net/projects/open86
(Originally by hckr83, now currently unmaintained by Alboin.)

http://myemu.masen-inhabitants.com/inde ... anguage=EN
(Written by bluecode, apparently unmaintained.)

Did any of these answer your question? :lol:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
OrOS
Member
Member
Posts: 143
Joined: Sat Sep 08, 2007 11:26 pm
Location: Canada

Re: Hmm, it escapes me

Post by OrOS »

I <3 you
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Hmm, it escapes me

Post by earlz »

Yes, what of it? lol
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Re: Hmm, it escapes me

Post by Alboin »

Brynet-Inc wrote:http://sourceforge.net/projects/open86
(Originally by hckr83, now currently unmaintained by Alboin.)
It's not that it's dead, it's just that I've seriously no time to work on it. It's going through an experimental rewrite, and I may have to rewrite it again with the knowledge I've gained from this rewrite. Quite frankly, I want to avoid having, for example, 'mov_ax_imm_8' and friends, being separate functions, abstract the arguments, and send it all to a single unified 'mov' callback.

I've slight success...
C8H10N4O2 | #446691 | Trust the nodes.
OrOS
Member
Member
Posts: 143
Joined: Sat Sep 08, 2007 11:26 pm
Location: Canada

Re: Hmm, it escapes me

Post by OrOS »

Ah, we will make it public soon (at the moment we work on a private CVS & Forum) but myself and 7 others have been working on a x86 and a 6502 Apple II | NES emulator. 6502 is progressing nicely, and we're looking for help with the x86 part from someone with experience.

libx86 is of particular interest.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Hmm, it escapes me

Post by earlz »

what language is this being implemented in? And for the x86 emulation part, are you going to try to emulate all of the PC hardware or just some x86 device out there? (actually, I think the PC is the only x86 thing)
OrOS
Member
Member
Posts: 143
Joined: Sat Sep 08, 2007 11:26 pm
Location: Canada

Re: Hmm, it escapes me

Post by OrOS »

Its written in C++, using SDL as its display library. The source is completely cross platform.
Its being written just for fun and to experiment. As such, we don't really care about overhead, unless it causes a dramatic slow down.
Everything is OO, even the opcodes:

Code: Select all

#include "stdafx.h"
#include "opcodes.h"

namespace COR
{
	MOS_LDX::MOS_LDX(void)
	{
		this->opcode	= 0xA2;
		this->count		= 2;
	}
	void MOS_LDX::execute(CPU *cpu)
	{
		cpu->regArray[MOS::reg_x]	= cpu->memArray[cpu->regArray[MOS::reg_ip]+1];
		cpu->regArray[MOS::reg_ip] += this->count;
		return;
	}

}
Would be the MOS 6502 opcode LDX.
The monitor is currently able to emulate anything from 80x26 text mode to 640x480 video mode.
x86 support is still far off, as we are all just learning :) The 6502 is a fun starter, and having a working Apple II is a hoot.
Post Reply