#20371 - spooo - Sun May 09, 2004 2:47 am
Hi,
I'm looking for a z80 emulator written in asm.
I have one which works but which is in C, but it's too slow (compiled with gcc).
Do someone have pointers ?
(the only emulator with source code based on z80 I found so far is foon-0.22, I'm working on it, but other links might be helpful)
Any help will be much appreciated.
#20374 - pan69 - Sun May 09, 2004 6:05 am
I think you're just looking for a different emulator I guess. The fact that a program is written in assembler doesn't mean it runs faster. I've seen some crap assembler code during the years to which good C code would be superior...
But your right about gcc. It has the worst optimizing properties I've ever seen in a C compiler. But hey, it's free...!
I'm sorry I can't help you with your search for another emulator though... Good luck!
- Pan
#20386 - punchy - Sun May 09, 2004 11:00 pm
When using the C code try compiling the base 256 opcodes into ARM asm and put them in to IWRAM. Run the extended codes from ROM. Speed will be okish. Out of interest, what are you trying to emulate?
#20418 - spooo - Mon May 10, 2004 11:52 pm
Thanks four your help.
I'll try to optimize the emulator written in C in that way.
#20873 - keldon - Tue May 18, 2004 10:04 pm
#65462 - keldon - Tue Jan 03, 2006 1:36 pm
Also to add to this. (NES Emulator)Nesticle was written in Watcom C whilst Nessie was written in assembler. Nessie requires an 80686 whilst Nesticle requires an 80486.
#65568 - tepples - Tue Jan 03, 2006 11:54 pm
keldon wrote: |
Also to add to this. (NES Emulator)Nesticle was written in Watcom C whilst Nessie was written in assembler. |
The 6502 CPU core and the PPU core of nesticle are likely in 486 assembly language.
Quote: |
Nessie requires an 80686 whilst Nesticle requires an 80486. |
Nessie also emulates the NES PPU much more accurately. If four lines of 6502 code can detect a Nesticle PPU, then something must be up.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.