English Amiga Board


Go Back   English Amiga Board > Other Projects > project.Amiga Game Factory

 
 
Thread Tools
Old 05 December 2014, 05:20   #1
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,504
Fake86 (68k SDL Port) - 8086 PC emulator

A portable, open-source (GPLv2) 8086 PC emulator.

Fake86 is an 8086 PC emulator written in C. It is written from scratch, including the CPU core and has been under development since October 2010. It was originally written in FreeBASIC, however I have since re-written it in C for greater speed and portability.

http://fake86.rubbermallet.org/

PHP Code:
Compilerm68k-Amiga-OS3
Building Makefile
"C:\CrossCompiler\AmiDevCpp\workspaces\Fake86\Makefile.win"
Executing  make clean
rm 
-f objects/adlib.o objects/ata.o objects/audio.o objects/blaster.o objects/console.o objects/cpu.o objects/disk.o objects/i8237.o objects/i8253.o objects/i8259.o objects/input.o objects/main.o objects/netcard.o objects/packet.o objects/parsecl.o objects/ports.o objects/render.o objects/sermouse.o objects/sndsource.o objects/speaker.o objects/timing.o objects/video.o bin/Fake86.exe

m68k
-amigaos-gcc.exe -c src/adlib.-o objects/adlib.-I"C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/ata.c -o objects/ata.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/audio.c -o objects/audio.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/blaster.c -o objects/blaster.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/console.c -o objects/console.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/cpu.c -o objects/cpu.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/disk.c -o objects/disk.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/i8237.c -o objects/i8237.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/i8253.c -o objects/i8253.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/i8259.c -o objects/i8259.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/input.c -o objects/input.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/main.c -o objects/main.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/netcard.c -o objects/netcard.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/packet.c -o objects/packet.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/parsecl.c -o objects/parsecl.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/ports.c -o objects/ports.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/render.c -o objects/render.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/sermouse.c -o objects/sermouse.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/sndsource.c -o objects/sndsource.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/speaker.c -o objects/speaker.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/timing.c -o objects/timing.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-gcc.exe -c src/video.c -o objects/video.o -I"
C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/sys-include" -I"C:/CrossCompiler/AmiDevCpp/workspaces/SDL_AGA/include" -DPATH_DATAFILES=\"/usr/share/fake86/\" -m68030   -s -noixemul

m68k-amigaos-g++.exe objects/adlib.o objects/ata.o objects/audio.o objects/blaster.o objects/console.o objects/cpu.o objects/disk.o objects/i8237.o objects/i8253.o objects/i8259.o objects/input.o objects/main.o objects/netcard.o objects/packet.o objects/parsecl.o objects/ports.o objects/render.o objects/sermouse.o objects/sndsource.o objects/speaker.o objects/timing.o objects/video.o -o "
bin\Fake86.exe" -L"C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/lib" -L"C:/CrossCompiler/AmiDevCpp/usr/local/amiga/m68k-amigaos/lib/libb/libnix" -s -noixemul ../SDL_AGA/bin/SDL_AGA.a ../SDL_AGA/support_libs/c2p8_040_asm.o ../SDL_AGA/support_libs/c2p8_040_dbl_asm.o  

Execution terminated
Compilation successful 
Buggered if I know if it runs, haven't even tried it myself yet

The timings are probably way off and the threading might be completely wrong (I was drinking Vietnamese beer at lunchtime).

It would need an 040 + FPU and PAL AGA + lots of STACK

And you'll need to copy all the files it needs (eg videorom.bin) to RAM:

This is based on v0.12.9.19

Update: Just gave it a quick go, seems to run out of memory during audio start up?

Updates: Running with -nosound gets it past the memory crash but I also get a black screen same as Arti.
After actually looking at the code properly I can see that it's using 32 bit color values which wouldn't really help much

Last edited by NovaCoder; 05 December 2014 at 13:30.
NovaCoder is offline  
Old 06 December 2014, 14:11   #2
Reido
Registered User

 
Join Date: Feb 2013
Location: Dublin/Ireland
Posts: 257
Cool, good luck with this!! Is it a bit too early to ask what the potentials are with this?
Reido is offline  
Old 06 December 2014, 15:40   #3
turrican3
Moon 1969 = amiga 1985

turrican3's Avatar
 
Join Date: Apr 2007
Location: belgium
Age: 42
Posts: 3,317
Happy to see you on a new project nova !!!
You never sleep ??
turrican3 is offline  
Old 11 December 2014, 07:04   #4
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,504
I don't sleep enough, I know that much

I replaced the threading with the SDL equivalents and compiled against the 'old' RTG SDL.

This produced and exe that runs but it doesn't get very far (just seems to get stuck in a loop). I suspect the problem is down to endian issues (yet again!)

I'll try and recompile it against my updated RTG SDL with debugging enabled and see what it's doing.

I've also been in contact with the Author of Fake86 who's keen to see an Amiga Classic port of his emulator so he might help out with an 8 bit update.

Last edited by NovaCoder; 21 September 2015 at 08:46.
NovaCoder is offline  
Old 08 November 2018, 11:10   #5
arti
Registered User

 
Join Date: Jul 2008
Location: Poland
Posts: 511
How this ended ?
arti is offline  
Old 08 November 2018, 12:13   #6
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,504
Quote:
Originally Posted by arti View Post
How this ended ?
Badly
NovaCoder 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
Site with many interesting 68k SDL games arti Amiga websites reviews 45 28 June 2017 01:26
Uae4All2-SDL Amiga Emulator for Android lubomyr support.OtherUAE 701 24 November 2016 06:55
ScummVM (v1.0.0) 68K Port NovaCoder project.Amiga Game Factory 7 04 September 2010 13:58
problems w/ 68k netsurf, dosbox, and sdl watertonian support.Other 1 04 July 2009 21:01
sdl 68k on my amiga mrodfr support.Apps 0 19 November 2006 17:23

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 01:45.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06527 seconds with 15 queries