<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.ninerpedia.org/index.php?action=history&amp;feed=atom&amp;title=Setting_the_Geneve_clock</id>
	<title>Setting the Geneve clock - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.ninerpedia.org/index.php?action=history&amp;feed=atom&amp;title=Setting_the_Geneve_clock"/>
	<link rel="alternate" type="text/html" href="http://www.ninerpedia.org/index.php?title=Setting_the_Geneve_clock&amp;action=history"/>
	<updated>2026-04-24T20:11:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://www.ninerpedia.org/index.php?title=Setting_the_Geneve_clock&amp;diff=48108&amp;oldid=prev</id>
		<title>Mizapf: Created page with &quot;The following routine can be used to reset the clock to a well-defined state, and then the date may be set using the MDOS command TIME.   *  Resetting the clock to 24h mode  *  a...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.ninerpedia.org/index.php?title=Setting_the_Geneve_clock&amp;diff=48108&amp;oldid=prev"/>
		<updated>2012-02-13T10:22:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The following routine can be used to reset the clock to a well-defined state, and then the date may be set using the MDOS command TIME.   *  Resetting the clock to 24h mode  *  a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The following routine can be used to reset the clock to a well-defined state, and then the date may be set using the MDOS command TIME.&lt;br /&gt;
&lt;br /&gt;
 *  Resetting the clock to 24h mode&lt;br /&gt;
 *  according to the MM58274C datasheet&lt;br /&gt;
 *  Time must be set afterwards using the MDOS command TIME&lt;br /&gt;
 &lt;br /&gt;
        DEF  START&lt;br /&gt;
 &lt;br /&gt;
 START  LWPI &amp;gt;F000&lt;br /&gt;
        LI   R0,&amp;gt;0F00&lt;br /&gt;
        MOVB R0,@&amp;gt;F130    // Write 0x0f into the control register&lt;br /&gt;
        SWPB R0&lt;br /&gt;
        MOVB R0,@&amp;gt;F13F    // Write 0x00 into the interrupt register&lt;br /&gt;
        LI   R0,&amp;gt;0500&lt;br /&gt;
        MOVB R0,@&amp;gt;F130    // Write 0x05 into the control register &lt;br /&gt;
 &lt;br /&gt;
        LI   R0,&amp;gt;0100&lt;br /&gt;
        LI   R1,&amp;gt;F131&lt;br /&gt;
        LI   R2,14&lt;br /&gt;
 LP01   MOVB R0,*R1+      // Write 0x01 to all registers&lt;br /&gt;
        DEC  R2&lt;br /&gt;
        JNE  LP01&lt;br /&gt;
 &lt;br /&gt;
        MOVB R0,@&amp;gt;F13F    // Set 24h mode&lt;br /&gt;
        CLR  R0&lt;br /&gt;
        MOVB R0,@&amp;gt;F130    // Write 0x00 into the control register&lt;br /&gt;
 &lt;br /&gt;
        BLWP @0&lt;br /&gt;
 &lt;br /&gt;
        END&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Geneve]]&lt;br /&gt;
[[Category:MDOS]]&lt;/div&gt;</summary>
		<author><name>Mizapf</name></author>
	</entry>
</feed>