READ CALENDAR: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
m (Created page with "==BIOSF_READ_CALENDAR ($C0045C)== Reads the uPD4990 calendar and sets values in RAM. MVS only. Sets in BCD: *BIOS_YEAR ($10FDD2): last 2 digits of year *BI...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==BIOSF_READ_CALENDAR ($C0045C)==
==BIOSF_READ_CALENDAR ($C0045C)==


Reads the [[uPD4990]] calendar and sets values in [[68k user RAM|RAM]]. MVS only. Sets in BCD:
Helper function which reads the [[uPD4990]] calendar date and time in [[68k user RAM|RAM]]. MVS only. Sets in BCD:


*BIOS_YEAR ($10FDD2): last 2 digits of year
{| class="regdef"
*BIOS_MONTH ($10FDD3): 1~12
| '''Address'''
*BIOS_DAY ($10FDD4): 1~31
| '''DEF name'''
*BIOS_WEEKDAY ($10FDD5): Sunday = 0... Saturday = 6
| '''Size'''
*BIOS_HOUR ($10FDD6): 0~23
| '''Set by'''
*BIOS_MINUTE ($10FDD7): 0~59
| '''Description'''
*BIOS_SECOND ($10FDD8): 0~59
|-
|$10FDD2
|BIOS_YEAR
|byte
|BIOS
|Current year
|-
|$10FDD3
|BIOS_MONTH
|byte
|BIOS
|Current month
|-
|$10FDD4
|BIOS_DAY
|byte
|BIOS
|Current day
|-
|$10FDD5
|BIOS_WEEKDAY
|byte
|BIOS
|Current weekday (Sunday = 00, Monday = 01 ... Saturday = 06)
|-
|$10FDD6
|BIOS_HOUR
|byte
|BIOS
|Current hour (24h format)
|-
|$10FDD7
|BIOS_MINUTE
|byte
|BIOS
|Current minute
|-
|$10FDD8
|BIOS_SECOND
|byte
|BIOS
|Current second
|}


[[Category:BIOS calls]]
[[Category:BIOS calls]]

Latest revision as of 17:53, 9 October 2016

BIOSF_READ_CALENDAR ($C0045C)

Helper function which reads the uPD4990 calendar date and time in RAM. MVS only. Sets in BCD:

Address DEF name Size Set by Description
$10FDD2 BIOS_YEAR byte BIOS Current year
$10FDD3 BIOS_MONTH byte BIOS Current month
$10FDD4 BIOS_DAY byte BIOS Current day
$10FDD5 BIOS_WEEKDAY byte BIOS Current weekday (Sunday = 00, Monday = 01 ... Saturday = 06)
$10FDD6 BIOS_HOUR byte BIOS Current hour (24h format)
$10FDD7 BIOS_MINUTE byte BIOS Current minute
$10FDD8 BIOS_SECOND byte BIOS Current second