Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Java Emulator Framework  (Read 8163 times)
0 Members and 1 Guest are viewing this topic.
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #30 - Posted 2002-12-13 17:06:26 »

Quote
CPU opcode formats usually have some sort of semantic logic to them.


Yes, true.  But unfortunately to decode the instruction in software based on that structure is just many more operations.  

The native CPU hardware would rip the instruction apart in parallel (e.g. the register #s would be tied directly to some sort of 'register address lines')  so the elegance of the structure shows through...
When you don't have all those different hardware units running in parallel I'm afraid that model can't be exploited efficiently.

Offline MaVi

Innocent Bystander




Java games rock!


« Reply #31 - Posted 2003-02-27 02:49:38 »

Quote
Xbrain,
Although the VM could possibly identify which opcodes are used more frequently, I'm afraid there's not much it can do to optimize those particular code paths.

It can't inline anything a that point based on frequency of access, it has to handle all possible situations. So there's not much optimization possible other than a jump table a this point.

Even the method I proposed in the previous post, the hierarchical decode, is probably slower, I only like it because it seems like an elegant solution, but that would have to be seen in an actual implementation.

Seb


Maybe using some kind of short circuits on a range check....
Offline javatypo

Junior Member





« Reply #32 - Posted 2003-04-14 18:00:14 »

why dont u guys make an emulator api.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #33 - Posted 2003-04-15 06:41:17 »

That's basically what JEF is.
https://sourceforge.net/projects/jef/

Offline javatypo

Junior Member





« Reply #34 - Posted 2003-04-17 19:41:11 »

o..

are there any that have been written with that?
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #35 - Posted 2003-04-17 20:54:38 »

Yes, CottAGE:
http://cottage.emuunlim.com

and there's a demo space invaders emu included in JEF.

Offline CornedBee

Junior Newbie




Eat me!


« Reply #36 - Posted 2003-05-19 06:52:38 »

C or C++ emulators tend to have highly optimized inline assembly.
A pure C/C++ emulator is not likely to be that much faster than a Java one.

All the buzzt
CornedBee :rolleyes:
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #37 - Posted 2003-05-19 08:45:17 »

Quote
A pure C/C++ emulator is not likely to be that much faster than a Java one.

In my experience, emulators are not really java's cup of tea. While it's true that most emulaters written in C/C++ have some inline assembly, it's also true that because you have much more low level control in just C/C++, C/C++ based emulators are generally quite a lot faster than the java ones. This doesn't necessarily make C/C++ quite a lot faster than java *per definition*, but a better choice for creating emulators if performance is a major concern.

Look at the emulator 'Modeler' for example (emulates Sega System32 arcade machines). It's completely written in C++, no fancy dynamic recompiling CPU cores (just interpreters), and it emulates possibly the most complex 2D video hardware ever. It runs quite acceptably on a 450Mhz P2.
You probably won't come close to that kind of performance if you did it in java.

Erik

Offline yandy.ah

Junior Newbie




Java games rock!


« Reply #38 - Posted 2003-08-08 00:38:39 »

I have waited for this emulator for a Long time, I wanted to code a emulator with java long before,but have no time ,the work is too much and busy at all,and team-force,dear all,would you start this project with me? Cool
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #39 - Posted 2003-08-08 22:53:40 »

To be honest, I'm not much into emulators anymore. I've written a couple of emulators around my own CPU cores and started an open source MAME-like effort, but to start a new project now.... No, I don't have the time I'm afraid.
You *really* need a lot of patience. Really rewarding if the emulator starts working, but a major pain to debug.

Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (40 views)
2014-09-24 16:13:29

Pippogeek (31 views)
2014-09-24 16:12:22

Pippogeek (21 views)
2014-09-24 16:12:06

Grunnt (47 views)
2014-09-23 14:38:19

radar3301 (29 views)
2014-09-21 23:33:17

BurntPizza (65 views)
2014-09-21 02:42:18

BurntPizza (37 views)
2014-09-21 01:30:30

moogie (44 views)
2014-09-21 00:26:15

UprightPath (53 views)
2014-09-20 20:14:06

BurntPizza (55 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!