Search found 14 matches

by Eirik Stople
Wed Jan 22, 2025 11:51 pm
Forum: CX16 General Chat
Topic: CX16 Community Forums
Replies: 13
Views: 18576

Re: CX16 Community Forums

FYI here is my attempt to make an official step-by-step guide, describing how to get from any board version to latest release. Since it have been reviewed, approved and merged to the docs repo, I guess this is the closest you get to something official. https://github.com/X16Community/x16-docs/blob/m...
by Eirik Stople
Sat Jan 11, 2025 9:18 am
Forum: X16 Bug Reporting
Topic: Monitor is able to view VERA memory, but does not save to file
Replies: 13
Views: 18611

Re: Monitor is able to view VERA memory, but does not save to file

Sorry to bump an old thread, but, I just wanted to share a piece of advice in terms of appending to files using BSAVE: If your strategy is to first make a file, and leave it empty, and close it, and then append to it from an empty file, this triggers a severe bug in KERNAL which will destroy the fil...
by Eirik Stople
Fri Jan 10, 2025 10:34 pm
Forum: Programming
Topic: KERNAL CRC call (not sure if right)
Replies: 23
Views: 15863

Re: KERNAL CRC call (not sure if right)

This is a plain old bug. First you accumulate the CRC over a whole number of 256 byte chunks. This part works fine. At the end, you accumulate the CRC over the remainder (starting from @2) This part have the following bug: Y is set to byte count of the remaining part of the data, which is decremente...
by Eirik Stople
Fri Jan 10, 2025 12:56 pm
Forum: Programming
Topic: KERNAL CRC call (not sure if right)
Replies: 23
Views: 15863

Re: KERNAL CRC call (not sure if right)

I vote for calling this a bug. Yes, we can have an "internal checksum" that is consistent internally, but, I think its value improves if it matches with something that is also standardized somehow, outside of the x16 kernal. Even though this breaks compatibility with current rom versions f...
by Eirik Stople
Fri Jan 10, 2025 8:17 am
Forum: Programming
Topic: KERNAL CRC call (not sure if right)
Replies: 23
Views: 15863

Re: KERNAL CRC call (not sure if right)

Sounds like I just got lucky for my bootloader checksum, which indeed is for 512 bytes
by Eirik Stople
Fri Jan 10, 2025 8:10 am
Forum: Programming
Topic: KERNAL CRC call (not sure if right)
Replies: 23
Views: 15863

Re: KERNAL CRC call (not sure if right)

A checksum that changes parameters depending on length? That's a new one :lol: good find! Sounds like the kernal routine needs a fix....
by Eirik Stople
Thu Jan 09, 2025 11:48 pm
Forum: Programming
Topic: KERNAL CRC call (not sure if right)
Replies: 23
Views: 15863

Re: KERNAL CRC call (not sure if right)

The "bootloader missing" is due to 512 bytes of 0xFF, giving that checksum. You may have installed the latest SMC firmware using an external programmer, and installed the .hex file without the bootloader, which will give this result. But I guess it is more likely that you have SMC firmware...
by Eirik Stople
Thu Jan 09, 2025 4:48 pm
Forum: CX16 General Chat
Topic: Updating the X16 Firmware to R48
Replies: 7
Views: 10310

Re: Updating the X16 Firmware to R48

There are no CD-ROM add-on support in R48, nor any plan to implement it, as far as I know. But nobody is stopping you from implementing it yourself :mrgreen:
by Eirik Stople
Thu Jan 09, 2025 4:29 pm
Forum: Programming
Topic: KERNAL CRC call (not sure if right)
Replies: 23
Views: 15863

Re: KERNAL CRC call (not sure if right)

Yes, KERNAL generates a CRC-16 that matches "CRC-16/IBM-3740". I used this online calculator to simplify the task of precompute the checksums for different versions of the SMC bootloader, ref https://github.com/X16Community/x16-smc/blob/main/doc/smc-bootloader-tools.md Here is how the boot...
by Eirik Stople
Mon Jan 06, 2025 6:34 pm
Forum: CX16 General Chat
Topic: Updating the X16 Firmware to R48
Replies: 7
Views: 10310

Re: Updating the X16 Firmware to R48

And for the record: Latest released SMC version is 48.0.0, I have a PR to update the documentation. There is also a newer pre-release available for VERA if you want to try that.