C64 Core
Moderators: Mug UK, Zorro 2, spiny, Greenious, Sorgelig, Moderator Team
Re: C64 Core
Happy New Year,
So I've been playing with the C64 a little trying to learn how to program a little and I set myself a little project to attach my uIEC SD card drive to the 64 core.
It works pretty well, but I can't work out how to get the internal 1541 and the external IEC to work at the same time, they sort of freeze each other out. So I used Switch(0) on the nano board to switch between them. It works on the fly so no need to restart the core.
The source is here if you want to have your own play with it and if you own a uIEC adapter or a SD2IEC adapter (my uIEC uses the same firmware).
You do need to build an adapter board though . . . breadboard layout is also in the github repo.
https://github.com/mtfong/C64_MiSTer
I used some spare Arduino pins as well so as not to impinge on the real core, although if you have an I/O board getting the 3.3V and 5V pins may be hard.
I also got a patch called JAFFY DOS to add some functionality to the C64 kernal for some SD2IEC hotkeys as well.
Lastly if you work out how to get them both to work together any help would be appreciated.
So I've been playing with the C64 a little trying to learn how to program a little and I set myself a little project to attach my uIEC SD card drive to the 64 core.
It works pretty well, but I can't work out how to get the internal 1541 and the external IEC to work at the same time, they sort of freeze each other out. So I used Switch(0) on the nano board to switch between them. It works on the fly so no need to restart the core.
The source is here if you want to have your own play with it and if you own a uIEC adapter or a SD2IEC adapter (my uIEC uses the same firmware).
You do need to build an adapter board though . . . breadboard layout is also in the github repo.
https://github.com/mtfong/C64_MiSTer
I used some spare Arduino pins as well so as not to impinge on the real core, although if you have an I/O board getting the 3.3V and 5V pins may be hard.
I also got a patch called JAFFY DOS to add some functionality to the C64 kernal for some SD2IEC hotkeys as well.
Lastly if you work out how to get them both to work together any help would be appreciated.
Re: C64 Core
Why don't use secondary SD card as SD2IEC? Of course you will need to emulate SD2IEC as well. C64 is relatively small core and there is enough FPGA space for SD2IEC.
Although i don't know what is the advantage of SD2IEC over 1541 emulation.
Although i don't know what is the advantage of SD2IEC over 1541 emulation.
Re: C64 Core
Just want to say big thanks for the additional joystick buttons! I now get the map up on Bear Essentials with button2 

-- kolla
Re: C64 Core
Yes I had thought of that, but it was something that was far too complex for me to start off with as I am learning from absolute zero. I needed something that I could achieve with my limited skill level, so I wouldn't give up and actually achieve something tangible. I just wanted to share in case someone else was mildly interested.Sorgelig wrote:Why don't use secondary SD card as SD2IEC? Of course you will need to emulate SD2IEC as well. C64 is relatively small core and there is enough FPGA space for SD2IEC.
Although i don't know what is the advantage of SD2IEC over 1541 emulation.
In truth there probably isn't anything really useful to add with SD2IEC. It does support more Commodore disk formats and some other cool features like disk swap files for multi disk games. I think it's pretty quick at loading disks too. Features as per the Wiki.
https://www.c64-wiki.com/wiki/sd2iec_(firmware)
I have bought a SD card attachment ( which is still in the XMAS post ) so I can use the IO Board pins that you set up, I'm doubtful that I have the skills required to port it into the core itself.
Re: C64 Core
This bug has been fixed already in 1541 code. So, you can use multi-disk games in 1541 as well.yellperil wrote:cool features like disk swap files for multi disk games.
Re: C64 Core
Good point. I hope you will learn fast and will be able to improve C64 core soonyellperil wrote:Yes I had thought of that, but it was something that was far too complex for me to start off with as I am learning from absolute zero. I needed something that I could achieve with my limited skill level, so I wouldn't give up and actually achieve something tangible.

Re: C64 Core
Just a quick couple of questions.... Firstly this Core is easily one of my favourites and most used, great work on this.
Some demos, such as http://csdb.dk/release/?id=149405 detect "emulated hardware", it still works of course but I was just wondering what it is detecting in the FPGA implementation of this core that is flagging it as emulation. I guess you would have to look at their startup/checking routine to see what they are looking for. I would guess it is something to do with timing/interrupts? But I am not sure
Also I have tried very hard to get http://csdb.dk/release/?id=93836 running but just cannot, music plays but screen doesn't go into the demo, I know even on a real C64 this demo requires that it be run first with no other commands or memory bytes eaten, and I can get it working on a real C64 and Vice, just not on the MiSTer core, any advice and info would be welcome, cheers.
Some demos, such as http://csdb.dk/release/?id=149405 detect "emulated hardware", it still works of course but I was just wondering what it is detecting in the FPGA implementation of this core that is flagging it as emulation. I guess you would have to look at their startup/checking routine to see what they are looking for. I would guess it is something to do with timing/interrupts? But I am not sure

Also I have tried very hard to get http://csdb.dk/release/?id=93836 running but just cannot, music plays but screen doesn't go into the demo, I know even on a real C64 this demo requires that it be run first with no other commands or memory bytes eaten, and I can get it working on a real C64 and Vice, just not on the MiSTer core, any advice and info would be welcome, cheers.
Re: C64 Core
This is easier to check from C64 code using some debugger or Action replay cartridge.keito wrote:I guess you would have to look at their startup/checking routine to see what they are looking for. I would guess it is something to do with timing/interrupts? But I am not sure
-
- Atarian
- Posts: 7
- Joined: Mon Feb 19, 2018 11:23 am
- Location: near Flensburg Germany
- Contact:
Re: C64 Core
I m very empresssed by the work on the mister and I use the C64 Core to test some old programs. One question: How can I put programs on the SD-CARD, load them and save them? I tried SAVE "TEST.PRG" and got the message PRESS RECORD & PLAY ON TAPE. I there a way to emulate the keys.
Re: C64 Core
Saving is possible only to disk. You need to mount the D64 disk and save there.
You need to insert the disk with enough free space. Core doesn't support disk initialization, so use pre-made Empty.D64 from release folder.
About saving to tape - i never tried it and it's not convenient anyway since there is no support for loading from audio input.
You need to insert the disk with enough free space. Core doesn't support disk initialization, so use pre-made Empty.D64 from release folder.
About saving to tape - i never tried it and it's not convenient anyway since there is no support for loading from audio input.
Re: C64 Core
Hello!
Maybe a dumb question but where is the "+" key on the C64 core?
Just wanted to hack in a little BASIC program but can't figure out where it is.
Thank you.
Thorsten
Maybe a dumb question but where is the "+" key on the C64 core?
Just wanted to hack in a little BASIC program but can't figure out where it is.
Thank you.

Thorsten
MiSTer Expansion Boards: http://www.atari-forum.com/viewtopic.ph ... 92#p344187
Re: C64 Core
Hi Sorgelig
That did the trick. Thank you!
Thorsten
That did the trick. Thank you!
Thorsten
MiSTer Expansion Boards: http://www.atari-forum.com/viewtopic.ph ... 92#p344187
-
- Atariator
- Posts: 22
- Joined: Mon Sep 24, 2007 1:11 pm
Re: C64 Core
I've got a sd2iec and there piss to a real floppy drive heaps of games and demos don't run using that thing. 

be cool game on!!!
Re: C64 Core
There are tons of sd2iec fixed game releases out - game images (d64) which use loaders that copy own fastload routines to the floppy ram are not supported because the sd2iec does not emulate the real cpu and ram.nathan1974au wrote:I've got a sd2iec and there piss to a real floppy drive heaps of games and demos don't run using that thing.
And it's the same with the C64 MiSTer Code, this kind of floppy speeders are not supported. Get d64 images that were "cracked" ages ago and don't contain any fasloader / copy protection anymore.
Re: C64 Core
Well, it's not entirely true. MiSTer emulates real CPU and RAM of 1541. That's why you can use JiffyDOS ROM for 1541 and C64 and get fast loading. The problem is how precise 1541 features are emulated.
Re: C64 Core
If you want to have very precise implementation than switch to TC64 or Ultimate64.
But than you have more or less only C64 (not totally right for TC64) and not the flexibility of MiSTer and not Open Source for 250€/220€
But than you have more or less only C64 (not totally right for TC64) and not the flexibility of MiSTer and not Open Source for 250€/220€
Re: C64 Core
I don't know what was a reason for U1541 become open source, but i hope U64 will become open source as well. I don't think open source will harm U64 sales as it is interesting mostly as a hardware replacement for C64 fans.
Re: C64 Core
Gideon also mentioned that the U64 might become Open Source. (Second batch is already complete sold it seems)
I‘ve also thought about buying one, but then decided for the MiSTer as this is more of interest for me (as I already own a Turbo Chameleon).
C64 Reloaded MK3 will be also a very interesting board - but this will stay Closed Source.
Also a lot of people @Forum64 have brought the DE10 in the meanwhile - so community is growing.
I‘ve also thought about buying one, but then decided for the MiSTer as this is more of interest for me (as I already own a Turbo Chameleon).
C64 Reloaded MK3 will be also a very interesting board - but this will stay Closed Source.
Also a lot of people @Forum64 have brought the DE10 in the meanwhile - so community is growing.
Re: C64 Core
Too bad still there is no self-motivated C64 fan who can improve the current core.
C64 Reloaded is based on original chips as far as i know - it has no relation to FPGA.
C64 Reloaded is based on original chips as far as i know - it has no relation to FPGA.
Re: C64 Core
Jens announced the MK3 - as a Turbo Chameleon on stereoids.
FPGA - I‘m willing to learn, but I‘m more a SW guy.
But I already have some ideas to easier integrate unsupported joysticks than compile them to the MiSTer app
FPGA - I‘m willing to learn, but I‘m more a SW guy.
But I already have some ideas to easier integrate unsupported joysticks than compile them to the MiSTer app
-
- Atariator
- Posts: 28
- Joined: Thu Mar 30, 2017 3:19 pm
- Location: Slough, UK
- Contact:
Re: C64 Core
how do you load disks, load"*",8,1 doesnt work for me
prg and crt work fine
prg and crt work fine
Re: C64 Core
Hi!silverfox0786 wrote:how do you load disks, load"*",8,1 doesnt work for me
prg and crt work fine
Try to list the attached .d64 as follows:
First type
LOAD"$",8 [RETURN]
then, after loading the directory (READY prompt appears)
LIST [RETURN]
Load the firt .PRG from the list which is longer than 0 block (sometimes the first file is not a real .PRG, just a spacer or part of a PETSCII-art, in this case it has 0 block length).
If this does not help try another release of the game (current C64 core is not perfect yet).
Hope it helps: Gábor
-
- Atariator
- Posts: 28
- Joined: Thu Mar 30, 2017 3:19 pm
- Location: Slough, UK
- Contact:
Re: C64 Core
thnkas alot that worked and i found out why my method was not,DrOG wrote:Hi!silverfox0786 wrote:how do you load disks, load"*",8,1 doesnt work for me
prg and crt work fine
Try to list the attached .d64 as follows:
First type
LOAD"$",8 [RETURN]
then, after loading the directory (READY prompt appears)
LIST [RETURN]
Load the firt .PRG from the list which is longer than 0 block (sometimes the first file is not a real .PRG, just a spacer or part of a PETSCII-art, in this case it has 0 block length).
If this does not help try another release of the game (current C64 core is not perfect yet).
Hope it helps: Gábor
I was being too impatient and thought it was liek a tape load with the rainbow banding. i left it on loading long enough and teh ready prompt came, types RUN and the game loaded
thanks