Wiki editing discussion

Pagina 144/184
137 | 138 | 139 | 140 | 141 | 142 | 143 | | 145 | 146 | 147 | 148 | 149

Van gdx

Enlighted (6108)

afbeelding van gdx

05-02-2022, 12:49

Quote:

it's not a good idea to put the locations in the file in decimal

Do you think it's better to mix the two? And especially since the # does not necessarily mean Hexa. In addition, this page is about RTC, not emulators. It is useless to put a value that goes up to 15 in hexadecimal.

Quote:

By default, the firmware is in Spanish, but you can choose another language, what will modify the Area code stored in the Ricoh RP-5C01 clockchip as follows:

This sentence does not make sense. This value can be changed on all RTC.

Van mars2000you

Enlighted (6432)

afbeelding van mars2000you

05-02-2022, 12:52

gdx wrote:
Quote:

it's not a good idea

Do you think it's better to mix the two? And especially since the # does not necessarily mean Hexa. In addition, this page is about RTC, not emulators. It is useless to put a value that goes up to 15 in hexadecimal.

Ah.... I see the problem. I will fix that.

Quote:
Quote:

By default, the firmware is in Spanish, but you can choose another language, what will modify the Area code stored in the Ricoh RP-5C01 clockchip as follows:

This sentence does not make sense. This value can be changed on all RTC.

Yes, but not by selecting a language when using a firmware.

Van mars2000you

Enlighted (6432)

afbeelding van mars2000you

05-02-2022, 13:00

All is in decimal now. Still not sure it is better, because users of hexadecimal editors will be a little confused. What about all in hexadecimal, also the registers???

Van gdx

Enlighted (6108)

afbeelding van gdx

05-02-2022, 13:00

Quote:

Yes, but not by selecting a language when using a firmware.

Does this have any influence on the aera bit of the RTC?

Van mars2000you

Enlighted (6432)

afbeelding van mars2000you

05-02-2022, 13:16

gdx wrote:
Quote:

Yes, but not by selecting a language when using a firmware.

Does this have any influence on the aera bit of the RTC?

It changes the value, so the next time you power on and boot the computer, the firmware will not be in Spanish, but in the language you have choosen.

Van gdx

Enlighted (6108)

afbeelding van gdx

05-02-2022, 13:20

In fact, it's Sony that makes specific use of this bit so you were correct in this case. Must say that the standard is not clear about the use of the bit. And to make matters worse, Sony got the code wrong. Anyway it would be interesting to know who is right. Sony or the datapack?

Van mars2000you

Enlighted (6432)

afbeelding van mars2000you

05-02-2022, 13:39

It's the only setting for which there is not a corresponding MSX-BASIC instruction. It probably explains why it was not respected outside Japan, even by Japanese companies!

I think the absence of MSX-BASIC instruction opens the way to specific free using of this setting.

An MSX-BASIC instruction would have been useful for example with an extended BIOS integrating several keyboard layouts, like GR8bit has done more recently.

Van Manuel

Ascended (19303)

afbeelding van Manuel

05-02-2022, 23:46

Wiki writes:

Quote:

Emulators store the RTC data in a small file of 52 bytes in openMSX and 53 bytes in blueMSX. The difference comes from the fact that blueMSX stores an extra setting to probably check if the computer is normally working (value 0Dh when all is OK).

That reason is totally unclear. Who checks that byte in which way and how does it conclude what exactly is normally working?

Another blueMSX extra setting also exists, but only for Russian Yamaha computers with network. It probably checks if the MSX-Network is correctly working (value 0Dh when all is OK).

These extra blueMSX settings don't correspond to a register in the RTC chip.

The blueMSX code just writes 4*13 bytes from the RTC registers the the file, as far as I can see:

    UInt8 registers[4][13]; 
...
    if (rtc->cmosName[0]) {
        FILE* file = fopen(rtc->cmosName, "w");

        if(file != NULL) {
            fwrite(rtc->registers, 1, sizeof(rtc->registers), file);
            fclose(file);
        }
    }

So, I can't even explain why it would write more than 52 bytes... and it also only reads the same number:

        file = fopen(cmosName, "r");

        if (file != NULL) {
            fread(rtc->registers, 1, sizeof(rtc->registers), file);
            fclose(file);
        }

Van gdx

Enlighted (6108)

afbeelding van gdx

06-02-2022, 01:45

Is the table of emulators more clearly modified like this?

Van mars2000you

Enlighted (6432)

afbeelding van mars2000you

06-02-2022, 02:01

I don't think. It's more confusing, as you transform the normal registers from blocks 1 to 3 in 'extra' registers when they are converted into a file by both emulators. Actually, it's the same registers but with a different number, because the emulators don't generate 4 files, one for each block, but only 1 file.

@Manuel: one thing is the code, another thing is the file effectively stored by blueMSX. The differences are probably generated by another part of the code, still for reaons I ignore.

Pagina 144/184
137 | 138 | 139 | 140 | 141 | 142 | 143 | | 145 | 146 | 147 | 148 | 149