PB64 - C64 Emulator [Win10/64bit]

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
Mr.L
Enthusiast
Enthusiast
Posts: 104
Joined: Sun Oct 09, 2011 7:39 am

PB64 - C64 Emulator [Win10/64bit]

Post by Mr.L »

Hi there!
Here is my attempt to write a C64 Emulator:
Download

Uses SDL2.dll for sound output
No Floppy / Tape emulation
only supported filetype is *.prg

Default keys for the Joysticks are:
Numpad 1 - Left
Numpad 3 - Right
Numpad 5 - Up
Numpad 2 - Down
Numpad 7 - Fire

Image

Image
User avatar
idle
Always Here
Always Here
Posts: 5042
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: PB64 - C64 Emulator [Win10/64bit]

Post by idle »

shame I can't try this out at the moment, thanks for sharing.
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 281
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: PB64 - C64 Emulator [Win10/64bit]

Post by oreopa »

"But does it emulate X_BEHAVIOUR on raster line Y at cycle Z when the screen is off and you are heating eggs on the PSU?!!111"

In seriousness, pretty cool. Thanx a lot for sharing the source.

EDIT: I cant compile it... POLINK errors... unresolved SDL symbols... slap me with a clue stick?
Proud supporter of PB! * Musician * C64/6502 Freak
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: PB64 - C64 Emulator [Win10/64bit]

Post by Paul »

oreopa wrote: EDIT: I cant compile it... POLINK errors... unresolved SDL symbols... slap me with a clue stick?
The DLL used is 64bit so you will have to compile with PB x64 (kinda says that is the description ;) )
Image Image
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 281
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: PB64 - C64 Emulator [Win10/64bit]

Post by oreopa »

Paul wrote:
oreopa wrote:The DLL used is 64bit so you will have to compile with PB x64 (kinda says that is the description ;) )
My excitement got the better of me ;) Thanx :)

It' is very impressive. Managed a few games of stuff. Far from perfect, but it wasn't stated as such :) Could easily be extended to be useful for crossdev/debugging. Cheers!
Proud supporter of PB! * Musician * C64/6502 Freak
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: PB64 - C64 Emulator [Win10/64bit]

Post by BarryG »

Interesting! Love the C64, so it's nice to see this.
User avatar
Otrebor
Enthusiast
Enthusiast
Posts: 198
Joined: Mon Mar 17, 2014 1:42 pm
Location: São Paulo, Brasil
Contact:

Re: PB64 - C64 Emulator [Win10/64bit]

Post by Otrebor »

Congratulations!
User avatar
Rings
Moderator
Moderator
Posts: 1427
Joined: Sat Apr 26, 2003 1:11 am

Re: PB64 - C64 Emulator [Win10/64bit]

Post by Rings »

Bravo, very nice stuff !!!!
SPAMINATOR NR.1
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB64 - C64 Emulator [Win10/64bit]

Post by infratec »

Hi, hi,

long time ago I wrote an Sharp MZ700 emulator.
At the start of my PB time I wanted to port it to PB, but a Z80 CPU is not easy to port :wink:

I did also many tricks to speed up the character output (using VGA custom charsets)

At the moment it runs only via DOSBox :oops:

So from one emulator to the other ...

WELL DONE :!:
Mr.L
Enthusiast
Enthusiast
Posts: 104
Joined: Sun Oct 09, 2011 7:39 am

Re: PB64 - C64 Emulator [Win10/64bit]

Post by Mr.L »

thanks for the feedback!
No, its not at all a perfect emulation :P - just a fun project for me.
My initial goal was just to see the blue startscreen and a blinking cursor but from there on
I added more and more features like collision detection, foreground/background Sprite position,
SID-Sound and so on...
Unfortunatly, many of the more advanced games and demos are not running but i already spent
too much time on this project to fix that.
Maybe someone else feels the urge to make it work :wink:
User avatar
Michael Vogel
Addict
Addict
Posts: 2666
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: PB64 - C64 Emulator [Win10/64bit]

Post by Michael Vogel »

Cool idea, maybe going one step back in history would be also an interesting project the Pet 2001 :wink:
User avatar
em_uk
Enthusiast
Enthusiast
Posts: 366
Joined: Sun Aug 08, 2010 3:32 pm
Location: Manchester UK

Re: PB64 - C64 Emulator [Win10/64bit]

Post by em_uk »

Very cool!
----

R Tape loading error, 0:1
Post Reply