Forum Rule: Always post complete source code & details to reproduce any issue!
Page 7 of 7 FirstFirst ... 5 6 7
Results 151 to 160 of 160

Thread: Commodore C64 Emulation on a Teensy 3.6 Microcontroller

  1. #151
    Junior Member
    Join Date
    Oct 2017
    Posts
    5
    Quote Originally Posted by itec View Post
    @gothmag
    I just received my Teensy64 board and have been having a play. I've started doing a basic implementation of the D64 image format. There is a good library available called diskimage.c, though it appears to load the entire disk image into memory. I don't think this is good on a microcontroller.

    As a result I have been writing my own by taking some parts of diskimage.c and following the documentation at http://unusedino.de/ec64/technical/formats/d64.html. I've done a rough implementation of loading a directory, following the directory entries from track 18/1 on. I've used the existing method in pacthes.cpp for hooking the load. In my current builds LOAD "$" returns the sdcard contents and LOAD "$IMAGE.D64" loads the directory from the image file. I've followed the existing code from Frank for the SDCard patch basically. In the image you can see the title, blocks free, file type are incorrect. I'm currently doing the BAM stuff for this.

    @all: If anyone else is already doing this work, please let me know.

    Attachment 12132
    I'd be very interested in this as well, even if not all disk images would be possible due to fastloaders and/or copy protection it might still be very useful.

  2. #152
    Quote Originally Posted by menno View Post
    I'd be very interested in this as well, even if not all disk images would be possible due to fastloaders and/or copy protection it might still be very useful.
    Stay tuned - great to have interest. The board kits with ILI9341 and T_3.6 connectivity are available. Frank may be 'offline' a short time - though the more interested folks the better. PM me if I can help get you a kit.

    I don't have history with C64, but I know enough to understand the complexity and proficiency of what FrankB has done here and am excited to see it move forward.

  3. #153
    Junior Member
    Join Date
    Nov 2017
    Posts
    9
    I just thought I'd add. I had my dad mail me my sd2iec. I've only tested 1 thing, which is all I've got time for now, and M.U.L.E. works. It's one of my favorite games from when I was a kid so that's great. This is essentially the way forward I think. "Native" loading and directory traversal like itec has started on followed by sd2iec emulation/porting. Not everything since the channels are an abomination, but it's close. Again I won't have time for a little while but it seems like it'll be the quickest way to make it work properly. https://sd2iec.de/
    Last edited by gothmag; 12-04-2017 at 08:13 AM. Reason: Added link for sd2iec

  4. #154
    Yeah, something like the SD2IEC would work for a lot of cracked programs, but that's all. Demos, and a lot of programs use custom loader routines.

  5. #155
    Junior Member
    Join Date
    Nov 2017
    Posts
    9
    Demos on the Amiga were cool, the commodore I could pass on. M.U.L.E. Is an actual disk image, do you have an example of something that you don't think would work? I've got everything on sd2iec. No disks at my house though.

  6. #156
    M.U.L.E was copy-protected and used with EA's custom sector loader. The disk image you have of it is a crack. Anything that works on the SD2IEC has to use the standard loading routines (no block reads or custom disk format), which means they are all cracks if they work.

  7. #157
    Junior Member
    Join Date
    Nov 2017
    Posts
    7
    I think I will end up with a less compatible implementation than the sd2iec that loads incredibly quickly. I won't do all the extra copy protection sectors in the d64 format or other image formats with additional tracks/BAM, GEOS etc

    Directory listing is now complete and I am just starting to test loading of prg files from the D64. I haven't looked at SEQ files yet.

    I am also looking at the new internal sd2iec with the teensy64 as an option. I am not sure if I could power it from the 5v on Frank's board though.

  8. #158
    Are you looking at this one - or one like it? : https://www.ebay.com/itm/Internal-fi...item3625ee366f

    I was there yesterday [ebay reminded me today] and the sd2iec I got is no longer available so I can't link the page - it was $25 not $45 - and shipped for $5 less to US. What Frank tested against in pic below. I didn't wire mine up yet. I assume that runs from PCB's 5V. That was the goal in that jumper block (drawing linked below).

    That one above doesn't show power used - Fed from USB, the PCB should get most of 500 mA. With ~190 used for the base unit - maybe more depending on USB_Host. From a USB passing more, the T_3.6 may have enough? I just clocked the ILI9341 at 187mA with display at BASIC screen with wireless USB connected - did not catch a change doing a DIR load "$" of onboard SD.

    Linked board isn't labeled - but I assume it wants 5V - if taken off a 5V VIN pin that will bypass the regulator and pull 5V from there for whatever it is worth.

    Click image for larger version. 

Name:	sd2iec.PNG 
Views:	15 
Size:	475.0 KB 
ID:	12140

  9. #159
    Junior Member
    Join Date
    Nov 2017
    Posts
    7
    Some more progress on the D64 disk images. I need to take in to account a few things like wildcards, secondaryAddress, SEQ files and then do the write code.

    Looks like it is going to work with the same restrictions as SD2IEC but much faster and less compatible.


  10. #160
    Junior Member
    Join Date
    Nov 2017
    Posts
    7
    @defragster
    I have this one on the way: https://www.thefuturewas8bit.com/sd2iec-classic.html

    It looks like I could squeeze that in pretty easily and have a slower but more compatible drive as an option. It will be handy for testing if I end up finishing the code.

    I asked the manufacturer about the power requirements for the sd2iec and they pointed me to a page for hooking vias on the c64 motherboard for power.

    I'll measure it when it arrives and hope that there is headroom on the teensy64. If not it will require a separate usb for the sd2iec drive or a change to a 5v plugpack I guess.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •