At 08:12 PM 12/17/98 +0700, you wrote:

>>i) I heard that with a VDP-port I can know if the electricity is 50Hz or
>>60Hz. Is it right? And if yes, can someone point me the port?
>
>Check VDP(10). A value of 2 means 50Hz, a value of 0 means 60Hz. I don't
>remember the port number in assembler (9?).

This only tells you the frequency of the display refresh. There is
absolutely no way to find out the frequency of the electricity an MSX is
running on.

Also note that VDP registers are write-only, so reading VDP(10) is in fact
reading a value in system RAM that is kept consistent with VDP register 9
(BASIC adds one to register numbers above 8). I think it's address is #FFE8
or #FFE9.

By the way, the JIFFY clock Kari mentioned runs at the same rate as the
VDP, so you will have to divide by either 50 or 60 to convert the JIFFY
count to seconds.

Bye,
                Maarten


****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to