Difference between revisions of "OSWORD &0E"

From BeebWiki
Jump to: navigation, search
m (1 revision)
(Added subfunction 3.)
Line 1: Line 1:
 
[[Category:OSWORD]]
 
[[Category:OSWORD]]
OSWORD &0E (14 ) - Reads CMOS clock Acorn Master MOS
+
OSWORD &0E (14 ) - Reads CMOS clock
  
 
  On entry:
 
  On entry:
 
   XY+0=function code
 
   XY+0=function code
 +
 
  0 - Return clock value as string
 
  0 - Return clock value as string
 
   On exit:
 
   On exit:
Line 18: Line 19:
 
   XY?5=minutes (&00-&59)
 
   XY?5=minutes (&00-&59)
 
   XY?6=seconds (&00-&59).
 
   XY?6=seconds (&00-&59).
 
+
 
 
   A year value of &80-&99 represents 1980-1999, a value of
 
   A year value of &80-&99 represents 1980-1999, a value of
 
   &00-&79 represents 2000-2079.
 
   &00-&79 represents 2000-2079.
Line 24: Line 25:
 
  2 - Convert BCD to string.
 
  2 - Convert BCD to string.
 
   On entry:
 
   On entry:
   XY+1..7=BCD value
+
   XY+1..7=BCD value as with subfunction 1
 +
  On exit:
 +
  XY+1..25=CR-terminated string as with subfunction 0
 +
 
 +
3 - Return 5-byte centisecond clock value (where supported)
 
   On exit:
 
   On exit:
   XY+1..25=CR-terminated string
+
   XY?0..4=number of centiseconds since 00:00:00 01-Jan-1900
  
 
==See Also==
 
==See Also==
 +
* [[OSWORD &0F]]
 
* http://mdfs.net/Docs/Comp/BBC/Oswords
 
* http://mdfs.net/Docs/Comp/BBC/Oswords
  
 
[[User:Jgharston|Jgharston]] 12:56, 26 May 2009 (UTC)
 
[[User:Jgharston|Jgharston]] 12:56, 26 May 2009 (UTC)

Revision as of 02:40, 4 October 2017

OSWORD &0E (14 ) - Reads CMOS clock

On entry:
 XY+0=function code
0 - Return clock value as string
 On exit:
  XY+0..23=CR-terminated string in form
  "Day,DD Mon Year.HH:MM:SS".
1 - Return BCD clock value.
 On exit:
  XY?0=year (&00-&99)
  XY?1=month (&01-&12)
  XY?2=date (&01-&31)
  XY?3=day of week (&01-&07, Sun-Sat)
  XY?4=hours (&00-&23)
  XY?5=minutes (&00-&59)
  XY?6=seconds (&00-&59).
 
 A year value of &80-&99 represents 1980-1999, a value of
 &00-&79 represents 2000-2079.
2 - Convert BCD to string.
 On entry:
  XY+1..7=BCD value as with subfunction 1
 On exit:
  XY+1..25=CR-terminated string as with subfunction 0
3 - Return 5-byte centisecond clock value (where supported)
 On exit:
  XY?0..4=number of centiseconds since 00:00:00 01-Jan-1900

See Also

Jgharston 12:56, 26 May 2009 (UTC)