mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
This also fixes two bugs: `-1 >>> 32` was -1 not 0, and `macro_FreeArgs` should have been called but wasn't.
15 lines
495 B
NASM
15 lines
495 B
NASM
MACRO between
|
|
assert (\2) >= (\1) && (\2) <= (\3)
|
|
ENDM
|
|
|
|
between 0, __UTC_YEAR__, 9999 ; Y10K problem...
|
|
between 1, __UTC_MONTH__, 12
|
|
between 1, __UTC_DAY__, 31
|
|
between 0, __UTC_HOUR__, 23
|
|
between 0, __UTC_MINUTE__, 59
|
|
between 0, __UTC_SECOND__, 60 ; leap seconds!
|
|
|
|
DEF UTC_TIME EQUS STRCAT("{04d:__UTC_YEAR__}-{02d:__UTC_MONTH__}-{02d:__UTC_DAY__}T", \
|
|
"{02d:__UTC_HOUR__}:{02d:__UTC_MINUTE__}:{02d:__UTC_SECOND__}Z")
|
|
assert !STRCMP("{UTC_TIME}", __ISO_8601_UTC__)
|