English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 29 June 2009, 22:04   #1
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,806
WinUae 68k emulation question.

Hi guys,

I was wondering how easy/difficult it would be to get WinUae's 68k emulation to work as a stand alone program. I'm just asking out of curiosity, because some people on the Easy68k site want '020 support for Easy68k.

Perhaps Toni could offer some pointers, so that I can pass them on to the Easy68k forum. The guy who made the Easy68k package is a professor who teaches 68000, amongst other things, and he's going to try to get some of his students to get the Uae 68k emulation to work in Easy68k. That's why I'm asking.

Thank you
Thorham is offline  
Old 29 June 2009, 22:10   #2
Rabbit80
Its hard being famous!
 
Rabbit80's Avatar
 
Join Date: Aug 2008
Location: Gateway to the dales, UK
Age: 43
Posts: 633
Wasn't this already done in one of the Atari emulators?
Rabbit80 is offline  
Old 30 June 2009, 09:53   #3
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,414
WinUAE's 68k core has been used in several other programs including UADE & Hatari
alexh is offline  
Old 30 June 2009, 11:08   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,540
I don't know, I have never needed to have separate 680x0 emulation..

It shouldn't be too difficult. 99% of emulation code is in single big .c-file which is autogenerated by gencpu.c. This file includes all 680x0 instructions and can be configured (without recompiling) to any UAE supported CPU model. (not including 68000 prefetch and cycle-exact modes that have separate big .c-file)

Model selection then simply configures 16-bit jump table (one for each possible instruction opcode). Empty slot = unknown instruction/not supported by current configured CPU, select correct exception, filled slot = pointer to instruction emulation code.

Very simple

Note that UAE/WinUAE sources do not come with those big .c-files. They need to be regenerated by running gencpu.
Toni Wilen is offline  
Old 01 July 2009, 21:37   #5
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,806
Quote:
Originally Posted by Rabbit80 View Post
Wasn't this already done in one of the Atari emulators?
I have no idea
Quote:
Originally Posted by alexh View Post
WinUAE's 68k core has been used in several other programs including UADE & Hatari
Nice to know it's been done before
Quote:
Originally Posted by Toni Wilen View Post
I don't know, I have never needed to have separate 680x0 emulation..

It shouldn't be too difficult. 99% of emulation code is in single big .c-file which is autogenerated by gencpu.c. This file includes all 680x0 instructions and can be configured (without recompiling) to any UAE supported CPU model. (not including 68000 prefetch and cycle-exact modes that have separate big .c-file)

Model selection then simply configures 16-bit jump table (one for each possible instruction opcode). Empty slot = unknown instruction/not supported by current configured CPU, select correct exception, filled slot = pointer to instruction emulation code.

Very simple

Note that UAE/WinUAE sources do not come with those big .c-files. They need to be regenerated by running gencpu.
Okay, that sounds perfectly possible. As you said: 'Very simple '

Thank you
Thorham is offline  
Old 12 July 2009, 17:04   #6
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
Aranym uses UAE's core.
gilgamesh is offline  
Old 14 July 2009, 22:25   #7
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,806
Quote:
Originally Posted by gilgamesh View Post
Aranym uses UAE's core.
Interesting, but isn't WinUaes cpu core more advanced?
Thorham is offline  
Old 15 July 2009, 10:31   #8
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
Well, I don't think so, but then I can't tell when it forked.

Aranym has MMU support, which UAE has not. In that respect Aranym is more advanced.
gilgamesh is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
AMOS for Windows installer using AROS-68K and WinUAE Mequa News 32 04 May 2017 09:08
68k emulation questions PiCiJi Coders. General 28 20 May 2013 15:08
WinUAE and Amiga 68k subversion issue PBobbenB support.WinUAE 16 08 January 2012 10:22
Hardware Idea: Making use of microcode to improve 68k emulation performance HenryCase Amiga scene 5 24 December 2011 11:11
Question about emulation/tv-out Crashlander New to Emulation or Amiga scene 14 05 March 2007 12:31

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:03.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08870 seconds with 13 queries