Author |
Message |
Kawa
Joined: Sun 05 Sep 2010, 15:42:48 Posts: 1344
|
Re: emulator efficiency
I won't stop you. And after I finish watching this Kamen Rider episode, I think I'll hook up the VRAM and such on the Asspull III×.
_________________ http://helmet.kafuka.org
|
Sat 07 Jun 2014, 17:45:39 |
|
|
SoraK05
Joined: Fri 26 Oct 2012, 14:47:06 Posts: 81
|
Re: emulator efficiency
For turning the ROM to an EXE, is it not a matter of disassembling the ROM according to each opcode and its expected operands, and then patching this as the structure is already set up as 'opcode+operand' throughout, as well as raw data which is also acknowledged (and skipped), as well as adjust any offset references.
|
Sat 07 Jun 2014, 22:32:08 |
|
|
Kawa
Joined: Sun 05 Sep 2010, 15:42:48 Posts: 1344
|
Re: emulator efficiency
I don't know, man. Get a small example ROM and try it. Don't forget to show us the results and such!
_________________ http://helmet.kafuka.org
|
Sat 07 Jun 2014, 22:35:14 |
|
|
creaothceann
Joined: Fri 10 Apr 2009, 18:17:56 Posts: 3308 Location: Germany
|
Re: emulator efficiency
Good luck trying that with self-modifying code, btw. (they're probably rare, but there's bound to be some).
_________________ "The first time I watched [FLCL] I was like 12 or 13 and I was scared and confused." - isthisagoodusername "I think it's more natural for human beings to be anxious. I think happiness is nothing but an illusion." - Hideaki Anno "If you can't joke about incest in anime then what kind of world are we living in?!" - gothicmaster
|
Sat 07 Jun 2014, 22:42:34 |
|
|
cr1901
Joined: Fri 03 May 2013, 06:51:50 Posts: 410 Location: NJ
|
Re: emulator efficiency
You broke the chain . Also, hello!
_________________ "It wouldn't be a byuu.org forum thread if the thread topic didn't derail at least once."- Some byuu.org forum member "Clearly the answer to [cross platform portability] is to write a DOS application and then everybody can run DOSBox. Except for [cr1901], who can run it natively."- Screwtape
|
Sat 07 Jun 2014, 23:42:48 |
|
|
Exophase
Joined: Sat 18 Apr 2009, 16:06:52 Posts: 2208
|
Re: emulator efficiency
Self-modifying code may not be that common on a lot of platforms but self-generating and self-loading code is. As far as static recompilation is concerned it's all pretty much the same.
|
Sun 08 Jun 2014, 01:48:55 |
|
|
SoraK05
Joined: Fri 26 Oct 2012, 14:47:06 Posts: 81
|
Re: emulator efficiency
All instructions including generated code is in the ROM, read by the opcodes/operands.
The ROM is already structured with opcodes/operands + raw data, and some addressing depending on opcode. I'm referring to mapping the (shorctut/tweaked) emulator version of opcodes and adjustments to the opcodes/operands in the ROM structure, determine raw data for leaving (by expected opcode/operand info) and adjust offsets. Put this in an emulator framework to allow for embedded instructions to use custom input, output, save state etc.
|
Sun 08 Jun 2014, 02:18:29 |
|
|
Kakashi
Joined: Mon 20 Apr 2009, 08:11:50 Posts: 5266 Location: 日本
|
Re: emulator efficiency
Emulator versions of opcodes, lol. Starvin' Marvin, you so funny.
Also, hi!
_________________ CaptainJistuce: He's totally in the wrong, Kakashi's 100% in the right. Note: The above statement is subject to act of byuu.
|
Sun 08 Jun 2014, 02:20:17 |
|
|
CaptainJistuce
Joined: Wed 06 May 2009, 04:13:19 Posts: 4543
|
Re: emulator efficiency
_________________ This post best viewed at 800x600 ;write ! ! !
|
Sun 08 Jun 2014, 02:43:39 |
|
|
Exophase
Joined: Sat 18 Apr 2009, 16:06:52 Posts: 2208
|
Re: emulator efficiency
No, that's totally wrong. Generated code isn't in the ROM by definition. I'd like to plead with you to stop making these incomprehensible statements about subjects you are almost completely ignorant of but I know you won't.
|
Sun 08 Jun 2014, 02:53:23 |
|
|
SoraK05
Joined: Fri 26 Oct 2012, 14:47:06 Posts: 81
|
Re: emulator efficiency
Any generated code is code which will be created by the code in the ROM, and anything of the nature of taking this generated code like from RAM instead of ROM can be determined and dealt with, and either patched on-the-fly or have any possible data which is used to generate this replaced with patched data.
|
Sun 08 Jun 2014, 06:25:18 |
|
|
Kakashi
Joined: Mon 20 Apr 2009, 08:11:50 Posts: 5266 Location: 日本
|
Re: emulator efficiency
You forgot to say that the code is sent straight to the monitor/speakers. Ahhh, Starvin' Marvin.
_________________ CaptainJistuce: He's totally in the wrong, Kakashi's 100% in the right. Note: The above statement is subject to act of byuu.
|
Sun 08 Jun 2014, 06:28:49 |
|
|
Sintendo
Joined: Wed 26 May 2010, 19:48:00 Posts: 708
|
Re: emulator efficiency
You can't just say "X can be determined an dealt with". You should demonstrate how, like Kawa previously told you. Here's another question for you, though. How can you automatically tell what is code and what is data in a ROM?
|
Sun 08 Jun 2014, 07:51:29 |
|
|
kode54
Joined: Fri 10 Apr 2009, 20:54:19 Posts: 2679
|
Re: emulator efficiency
Simple. Math.
_________________ blag
|
Sun 08 Jun 2014, 07:53:15 |
|
|
trap15
Joined: Fri 25 Nov 2011, 21:23:17 Posts: 175 Location: San Diego, California, USA
|
Re: emulator efficiency
Just a quick reminder:
THIS THREAD IS 23 PAGES LONG
_________________ Twitter | Daifukkat.su <S.Yagawa> I like the challenge of "doing the impossible" with older hardware, and pushing it as far as it can go <T.Fuzisawa> [How does one become a game designer?] Play every game ever made. Then think of something that has never been done and make it a reality.
|
Sun 08 Jun 2014, 08:14:14 |
|
|