Showing posts with label SD2IEC. Show all posts
Showing posts with label SD2IEC. Show all posts

Sunday, 12 October 2025

Changing SD2IEC Device IDs

This question comes up a lot, so I thought I would compile all the various versions into a single post I can point people at.

Background

All Commodore IEC and IEEE-488 devices need a unique ID to talk to the computer. Most disk drives default to device ID #8, but it is common to have secondary drives as #9, #10 or #11.

This is the number in the ubiquitous LOAD "$",8 style commands.

ID #8 is the most useful as that is the one that most things expect. If you press CBM+RUN/STOP on a machine with Turboload, Fastload or Jiffy DOS, it will load and run the default program from drive ID #8.

(Yes that is a real C64, I just have a modified ROM with SX-64 colours to make it easier to take photos.)

If you do SHIFT + RUN/STOP on a Commodore PET or a TED based machine, this will load and run the default program from drive ID #8.

If you use the DLOAD, DSAVE, CATALOGUE etc. commands on those machines, they will again be using ID #8.

Multi-part loaders will often be hard coded to load subsequent parts from drive ID #8, even if you load the first part from ID#9.

Why Change?

If you have a real disk drive like a 1541, or a built in disk drive on an SX-64 or a C128D or an 8296D, those all start off as ID #8, so would clash with an SD2IEC.

Some drives such as the 1541-II have a switch at the back to change the device ID, but most don't. To change the ID of those, it requires cutting a trace between two pads.

You can later return to ID #8 with a solder blob. People sometimes fitted switches to those pads, although drilling holes in drive cases is frowned upon these days.

It might seem tempting to leave the internal drives or real drives set as ID #8 and change the SD2IEC to ID #9, I would advise against that for the reasons given above.

To make your life easy, set the drive you plan to use the most as ID #8. 

In most cases, that would be the fast, reliable and highly capacious SD2IEC, with only occasional use of the real disk drives to copy files off or to transfer disks to images for use with the SD2IEC.

Still Want To Change?

If I haven't persuaded you, there here are a few methods you can use.

Universal Commands

On most systems, you can type in the following commands to change the ID. There are faster options for specific systems I will cover later.

The first command is the one which tells the drive to temporarily change it's ID:

OPEN 1,current address,15,"U0>"+CHR$(new address) : CLOSE 1

In most cases, you could be changing a drive with the default ID of 8 to be ID #9, so the command would be

OPEN 1,8,15,"U0>"+CHR$(9) : CLOSE 1

(I am not sure why it isn't just U0>9, maybe deliberately to avoid accidental triggers, or simply an error that became a feature?)

This will last until the power is removed or the drive is reset. To make it persist, you need a further command: 

OPEN 1,new address,15,"XW" : CLOSE 1

In the above example, that would be

OPEN 1,9,15,"XW" : CLOSE 1

You can now test this out, but remember you need to use ID #9 for everything now.

LOAD "$",9

We've changed out drive letter by mistake

Should you suffer the common symptom of "ID 9 Regret", you can reverse the process using the same commands with the opposite IDs to change from ID 9 back to ID 8.

OPEN 1,9,15,"U0>"+CHR$(8) : CLOSE 1

OPEN 1,8,15,"XW" : CLOSE 1

Easier Methods

VIC20

If you have a VIC 20 and a Penultimate +2 or +3 Cartridge (and if not, why not?), there is a program on the Utilities menu that will do that for you.

This program will prompt you for the current and new device IDs.

It will that run the same commands as above for you.

Commodore 64

There is a version of the above program on the Future Was 8 bit preloaded SD cards, and in the download pack

It lives in the following location:

-cbm/tools_and_utils/sd2iec-id

Once you find that, you can run it as before to change the ID.

And your SD2IEC is now device ID #9

(please don't forget you did that and take it out of the draw 6 months later and wonder why it doesn't respond to LOAD "$",8 - TFW8b had a run of people at one point trying to return "faulty" SD2IECs where they had forgotten they had changed them to ID #9)

What if I have an internal drive #8?

Ah, if you have a C128D or an SX64, then you can't use the above options as the SD2IEC will conflict with the internal drive as they will both be ID #8. The easiest way, if you can, is to plug it into another computer and change the ID on there first.

If you don't have that option, then you can do it using the type in commands above with a slight trick.

You first type in the following, but do not press return yet

OPEN 1,8,15,"U0>"+CHR$(9):CLOSE 1

You then press and hold the drive reset button on the internal drive (under the flap on the SX-64). That should stop the drive responding whilst you have the button held in.

Then with your other hand, press return and the command will be sent to the SD2IEC.

You can then release the drive reset button and you should have the internal drive still responding to ID #8, and the SD2IEC set to ID #9.

As before, if you want to make that permanent, type the second command. This is going to drive ID #9, so no need for the drive reset button trick this time.

OPEN 1,9,15,"XW":CLOSE 1

What about the SD2PET?

That is slightly different. It is designed to be the only device connected to the PET, so it hard coded to ID#8 to avoid any problems. 

If you have an 8296D (lucky you), you can either change the internal drive to be ID #9, which involves cutting the trace in the white circle next to the "1" on the 8250LP board inside. (I think you can also do it by lifting the appropriate leg of the 6532 next to it). Or simply unplug the cable to the internal disk drives.

Adverts

The new SD2IEC and Fastload Combo from The Future Was 8 bit is available now in four colours for those who are picky about such things.

Tindie

I can still ship worldwide from my Tindie store and US orders are now tariffs paid.

Currently it looks like Royal Mail to the US is working. I pay the 10% tariffs as part of the postage to (hopefully) avoid delays and additional costs at customs. The increased US postage costs cover this.

I have recently built some more Mini PET 40/80 Internal boards, since the Mini PET II is still in development but people keep asking, so here they are.



Patreon

You can support me via Patreon, and get access to advance previews of development logs on new projects like the Mini PET II and Mini VIC and other behind the scenes updates. On there you can see the post you would have got this week if Tindie had approved my listings in time. This also includes access to my Patreon only Discord server for even more regular updates (and me moaning about Tindie not approving my listings in time for blog posts)

Sunday, 31 August 2025

New SD2IEC and Fastload Combo - Pink Windmill Edition

New from The Future Was 8 bit - A combined SD2IEC+ and Fastload cartridge, in a special limited edition / collector's edition / founders edition known as the "Pink Windmill Edition".

This plugs into the cartridge port on your Commodore 64 and a lead plugs into the IEC socket on the C64 and you're done. No more userport or datasette port power cables, both are free for other purposes.

This is essentially two great products combined into one even greater one. And it's The Future Was 8 bit, so you know it's a nice injection moulded case, factory assembled PCB with gold plated edge connector. You know, things done properly.

In the same way the Penultimate +3 combined the Penultimate +2 and an SD2IEC+, this combines the Epyx Fastload Reloaded and an SD2IEC+.

This will suit the C64, C64C, C128, C128D and C128DCR (all in C64 mode).

The cable should suit the various different spacing on the different models.

As usual with the fastload, it is activated at boot for fastloading of files and a DOS wedge and other features.

You also have the SD2IEC+ device with a microSD card slot on the rear and next and previous disk buttons for multi-disk games.

We tried all ways, but just couldn't fit a full sized SD card slot in the C64 cartridge case, so it's microSD on this one.

You can even remove the cable if you just want to use the fastload cartridge with an external drive.

For the odd occasion where you want to load something from a 1541 etc.

You can also disable the fastload side of things if you wish.

Press £ to bring up the menu.

You can then press D to disable the fastload and you will be back to a standard C64, still with an SD2IEC attached.

From that menu, you could also access the additional file functions.

There is also a monitor program accessible by pressing ! from the READY prompt.

With various functions for viewing, changing, disassembling memory etc.

The new combo cart will be added to the range as the recommended option.

You could still go for the traditional "soap on a rope" style devices with userport or datasette port power (and even an optional, separate fastload cartridge).

But I hope you will agree the new version is a lot neater.

Shipping this week from The Future Was 8 bit:

Did I already mention that it is cheaper than the standard SD2IEC on it's own?

(n.b. this is so brand new that I have had to doctor some of the pictures to show the new label design, TFW8b are still waiting for those to be printed)


Tindie

My own Tindie store is still open, although shipping to the US is going to be tricky at the moment.


Patreon

You can support me via Patreon, and get access to advance previews of development logs on new projects like the Mini PET II and Mini VIC and other behind the scenes updates. This also includes access to my Patreon only Discord server for even more regular updates.

Sunday, 2 March 2025

Penultimate +3 Turbo - VIC20 Fastload

TL;DR

The Penultimate +3 Cartridge is now the Penultimate +3 Turbo, and has a built in fastloader, the speed of which is comparable to JiffyDOS (without having to open your machine or lose access to your datasette drive). Get yours now from TFW8b.com.

The long version

In the development folder for the Penultimate Cartridge, there is a text file with a list of features and games to add, things I have thought of, or ideas from TFW8b, suggestions from Patreon and social media, messages to support etc. Each time I revisit the code, I go through that and see what we can add next.

One thing on there that kept getting pushed back was a fastloader. This is something on the list of "it would be nice to add, but might take a long time or may not even be possible" - TFW8b has added quite a few pie in the sky ideas in there.

One reason I had pushed the fastloader back, is I have history with it. I spent several months in 2017 reverse engineering and disassembling the Epyx Fastload cartridge, with an aim of producing our own improved version.

Dubbed the "Epic Fastload" (see what I did there?), it was very close to production, but never quite made it over the line.

Hardware wise, the Epyx Fastload was not always the most compatible with non-standard machines. It relied on keeping a capacitor charged to keep the ROM overlay enabled, topped up by accessing specific addresses. The speed of discharge of that capacitor, and the logic level it switched at, were down to the PLA, and I am sure you know how many different variations of those there are these days. All sorts of different implementations with CPLD, FPGAs, GALs, EPROMs etc. (I am sure someone will do one with a Raspberry Pi one day, if they haven't already).

(My GAL based PLA replacement from 2015, another thing that I didn't think was good enough to release as it was not 100%)

To try to make the Epic Fastload it more compatible, I changed to use a flip flop to enable or disable the ROM. And it almost worked, but there were some weird timing issues, and problems remembering states when dealing with interrupts, particularly the scan line interrupts.

As you can see, I went through quite a few variations trying to find the best way to do it.

We even got as far as getting the production boards made, although I got overruled on the name, these were called FutureLoad (everything was "Future" at that time). (Rod likes to remind me of my failure of that project from time to time. Sorry Rod)

But it wasn't to be. I couldn't get a version that I was happy was good enough to go. It worked most of the time on most machines, but that's not good enough.

I have revisited it a few times since then, but it has mostly been sitting in a box in the back of the cupboard.

Roll on to 2024

Another feature that is on the "one day" list for the Penultimate Cartridge is a freezer cartridge. To that end, in the last hardware revision, I added a way to use the second half of the RAM chip (which was previously unused). My plan was that could be useful for a freezer cartridge, giving it an area to work in, or to backup to.

Since that was there, and the freezer cartridge wasn't likely to happen any time soon, I made that available to the user in a special mode that TFW8b dubbed "enhanced mode". This allows the user to select between the full 35K expansion RAM, and a second full bank of 35K. The base memory in the VIC20 remains fixed, so any code which switches banks needs to be in the base 5K of RAM.

I was speaking to Robin Raymond (who wrote the C64 game "Kingdom of the Seven Stones") about a future VIC20 game that could make use of this and how that could load in one bank full of data, switch banks and then fill the second and then set the game running.

One issue with that is it will be quite slow loading from disk on a VIC20. I told him about the fun I had with the fastload and said it would be interesting to see if that could be adapted for the VIC20. I was busy testing the next release at the time, so I sent him my reverse engineered version of the Epyx fastload code to see if he could get that running on a VIC20.

I was rather surprised to hear a few days later that he had got it running. The VIC20 does not need to deal with switching the ROM in and out, scan line interrupts, or the processor state register.

There were still various issues to resolve, I will go into them in a separate post, lots of little things like squeezing it down into 1K and dealing with the various clock frequencies of the different Vic models.

We spent the next couple of weeks sending versions back of forth, trying to improve it, make it smaller, speed it up.

But, by the end of that, we had a version that I could fit into the 1K that was available at the time.

Then followed lots and lots of testing (which is what I have been busy with recently).

I found (and fixed) several issues, and it is now working on everything I have tried.

Well, with two exceptions. The Pi1541 and the 1581.

Other than that, it works on the main targets, the built-in SD2IEC and real 1541 disk drives. Since it is using a version of the Epyx fastload protocol, it is supported on existing SD2IEC devices as well.

This video from Rod shows how it compares when loading the VIC20 version of Elite.

You can see immediately how the splash screen loads in comparison to the standard loader.

  • New VIC20 TurboLoad - 9.07s
  • JiffyDOS - 8.53s
  • Standard VIC20 - 76.56s

About 8x times faster that standard, pretty much the same as Jiffy DOS, I am happy with that. JiffyDOS is great, but requires opening the case and desoldering the ROM chip and also losing your datasette drive (unless you fit a switch to go back to the standard ROM).

This works from the built in file browser without any modifications to the VIC, and without losing your datasette port.

It can be disabled using the T key, which is now on the menu screen where help used to be.

Now you can see the bits I had to censor in the previous post on the new help pages.

Files selected in the file browser will load with the turbo load by default, and it will remain resident after loading the first file (so will work for multi-part loaders).

It is not enabled by default when you exit to BASIC. To activate it, you type

  • SYS 40000

I was pleased with that, hopefully it's easy enough to remember, SYS 4 and 4 zeroes.

From that point it will remain resident until reboot. It will speed up any file loads using the LOAD command or the standard kernal calls.

It does not speed up anything else, save and other disk operations will remain at normal speed. Also directory load for complicated reasons, although we have a solution for that in the works.

Roadmap

Things might get a little confusing at this point. Things were planned for the future, but this is too good to not add it as soon as possible.

Penultimate +2 (now)

This was frozen at 7.47 and will not be getting updated with the Turboload.

Penultimate +3 Turbo (now)

The Penultimate +3 is currently shipping with this version of Turboload, and has been for a couple of weeks now. This version has a built in SD2IEC with a microSD card.

Penultimate +3 Turbo DCR (Q2 2025)

This is the single board version of the Penultimate +3, with the SD2IEC integrated, and will have a full size SD card. This version is expected Q2 2025, the prototype boards are currently in production. More features to come in this one, and it should end up slightly faster than Jiffy DOS. (named the DCR after the C128 DCR which was similarly combined mainboard and disk drive, although we have no plans to put it in a metal box. Yet.....)

Penultimate +4 (2026+)

This is likely to be some time in 2026, and will be all new hardware, I have been wanting to upgrade various bits for a while, and I think the DCR will be squeezing that last possible drops out of the current chipset.

So, consider this a heads up, it might be a good time to stick your Penultimate cartridges on ebay and get one of the new ones.


Advertisements

The new Penultimate +3 with built-in SD2IEC drive and Turboload is shipping now from TFW8b.com.


Tindie

Minstrel 2 and 3 kits are available from my Tindie store, with worldwide shipping. Versions avaiable for ZX81 case or standalone with keyboard, and also Misntrel 3 with ZXpand microSD card interface (andn now available as PCB only).

I will slowly be moving things over there from my SellMyRetro store, so if there is anything that you want, let me know and I'll add it.

Patreon

You can support me via Patreon, and get access to advance previews of posts like this and behind the scenes updates. Patreon supporters had advance notice of this new feature, and are currently getting a run of posts as I catch up after spending the last few months testing Turboload. This also includes access to my Patreon only Discord server for even more regular updates.