News for hackers. Stuff that matters.
Re:C64 OS: A Commodore 64 OS with Modern Concepts by billpg on Monday September 17, 2018 @12:10PM (#18007211)
At which point have you just replaced so much hardware that you've just got a modern PC on your desk?
Re:C64 OS: A Commodore 64 OS with Modern Concepts by octorian on Monday September 17, 2018 @12:38PM (#18007455)
Especially when you start adding modern peripheral hardware that contains more general-purpose processing power than the C64's CPU itself.
Re:C64 OS: A Commodore 64 OS with Modern Concepts by stiGGG on Monday September 17, 2018 @01:19PM (#18007868)
Nothing special, this game already started when you replaced your datasette with the floppy drive back in the days.
Re:C64 OS: A Commodore 64 OS with Modern Concepts by nategri on Monday September 17, 2018 @01:54PM (#18008190)
I assume this is an allusion to the fact that the standard Commodore 64 disk drive had an identical CPU, lol. A legitimate computer all to itself. You could even expand the default 2KB of RAM up to 48KB. [1]

[1] https://en.wikipedia.org/wiki/Commodore_1541#Hardware

Re:C64 OS: A Commodore 64 OS with Modern Concepts by tyingq on Monday September 17, 2018 @03:16PM (#18009031)
The 1571 floppy (successor to the 1541) used a 2Mhz 6502, versus the 1Mhz 6502 in the C64. So, fairly common to have a disk drive that had a better CPU than your PC.
Re:C64 OS: A Commodore 64 OS with Modern Concepts by GlenTheMachine on Monday September 17, 2018 @02:20PM (#18008482)
You could also use it as a home-brew multiprocessor. I did that as a science fair project.
Re:C64 OS: A Commodore 64 OS with Modern Concepts by michrassena on Monday September 17, 2018 @05:10PM (#18010111)
That's kind of amazing. How did you communicate between the onboard CPU and the CPU in the floppy drive(s)?
Re:C64 OS: A Commodore 64 OS with Modern Concepts by GlenTheMachine on Monday September 17, 2018 @08:36PM (#18011403)
Through the serial port. It turns out that if you really dig into the 1541 docs, it’s possibly to push assembly code into RAM using existing 1541 commands over the serial port. And the 1541 has a command buffer. So I pushed assembly to perform parallel calculations to it, and then pushed two commands into the buffer, one to execute the code and the next one to resume normal serial ops after it ret’urned. The data from the calculations was placed into the data buffer prior to returning, and the 1541 just sent it out the port as a regular data packet, just as if it had been read off a floppy. Or so I recall; this was in 1986. My memory’s a little fuzzy.

It worked with N drives, too, although the C64 sort of had to act as the bus master to avoid serial packet conflicts.

That was a long time ago and I’ve certainly forgotten many of the details. But it won me a trip to the International Science Fair (this was before Intel started sponsoring it).

Re:C64 OS: A Commodore 64 OS with Modern Concepts by kw71 on Tuesday September 18, 2018 @07:46AM (#18014350)
It might add to the understanding, for those who are familiar with some other legacy stuff, to note that the cbm serial data port was a reimplementation of ieee488/gpib in a shift register style to cut down on the cabling cost. It was synchronus but some fastloader software reimplemented it in an async fashion (thanks to being able to upload code to the drive) along with changing the clk wire to be another data wire.
Re:C64 OS: A Commodore 64 OS with Modern Concepts by michrassena on Thursday September 20, 2018 @12:51PM (#18033832)
That's a fascinating technique. Did the commodore operating system itself push 6502 code to the floppy drives to move the heads, initiate data transfer, etc?
Re:C64 OS: A Commodore 64 OS with Modern Concepts by GlenTheMachine on Saturday September 22, 2018 @06:45PM (#18048392)
No, the basic floppy control software resided in ROM on the 1541. But as mentioned below, you could (and people did) essentially reprogram much of that stuff to enable copy protection, increase serial throughput speeds, etc.
Re:C64 OS: A Commodore 64 OS with Modern Concepts by mileycyrusXOXO on Monday September 17, 2018 @12:25PM (#18007346)
Computer of Theseus.
Re:C64 OS: A Commodore 64 OS with Modern Concepts by jug on Monday September 17, 2018 @02:49PM (#18008815)
I could ask Amiga X5000 owners the same. :D
Re:C64 OS: A Commodore 64 OS with Modern Concepts by mar77i on Monday September 17, 2018 @02:53PM (#18008854)
That's the joke basically... they took the Amiga approach at simplicity. Amazingly, Amiga's UI primitives were nothing but that. Maybe have programmers get a general idea about what the UI needs to feel like and what events are being handled. The simplicity of it is what makes it useful, and these concepts, if you put them into C directly translate to modern systems.

The variables never moved in 30 years. Stop adding visual effects if all you aim for is operational swiftness.

Re:C64 OS: A Commodore 64 OS with Modern Concepts by tom_ on Monday September 17, 2018 @08:39PM (#18011419)
It’s going to take a bit more than some storage and a network widget to get to that stage...