TheByteAttic / CERBERUS2100

The amazing multi-processor 8-bit microcomputer, featuring Z80, 6502 and AVR processors. Built with CPLDs, CERBERUS 2100™ is fully programmable even with respect to its hardware, at the individual gate and flip-flop level.
MIT License
75 stars 13 forks source link

Support for file streaming commands: Open/Close/Read/Seek #16

Closed movievertigo closed 6 months ago

movievertigo commented 6 months ago

The current file load command can only load a whole file at a time, which makes loading parts of a file impossible if the file is bigger then the available free memory, so I've added support for common file streaming commands. You can now open a file, seek to a particular location, and read from it.

Here's a summary of the new commands...

TheByteAttic commented 6 months ago

This is trickier, as it implies changing the manual, may have impact on other code, the interpreters, etc. Not sure how many people will find this useful. So maybe better to keep it as optional, and not in the main trunk?

movievertigo commented 6 months ago

They are all new commands. The existing commands haven't been changed (So existing apps can still load the old way). As far as I'm aware this shouldn't break anything. But if you want to keep it on a separate branch, I'm happy to go with whatever you think is best.

TheByteAttic commented 6 months ago

Let's do a separate branch then. I will link to it from the main page once it's up (let me know). The ATmega sketch consumes almost all the available memory, so I rather integrate only necessary functions for optimal running or the interpreters, and keep some room for future needs.

movievertigo commented 6 months ago

I'm not too familiar with the intricacies of GitHub, but if you're talking about having it in a branch in your repository then I believe you have to make an empty branch first and then I can make a pull request into that branch. Or if there's another way of doing it, please let me know.

TheByteAttic commented 6 months ago

I meant to host this version in your own Github repository, and I will link to it from the website and my repository, so people know this option is available.

movievertigo commented 6 months ago

My fork can be found here... https://github.com/movievertigo/CERBERUS2100

TheByteAttic commented 6 months ago

I just updated the website with this and some other stuff by you. Check out the latest news section.