TIP: Click on subject to list as thread! ANSI
echo: net_dev
to: All
from: Rene Herman
date: 1997-11-29 14:42:42
subject: MSGID.OOPS

Hello All ...

Yesterday I posted a MSGID generating algorithm, unfortunately containing a
small bug. It didn't handle the case where the RTC was in AM/PM mode right.
(the sign bit indicating PM in CMOS won't survive the bcd to bin
conversion)

Just in case someone is considering using it, please replace:

===

        jns     {at}{at}24HourFormatOrAM          ; PM (if RTC in AM/PM mode) ?
        xor     al, 090h                    ; yes, clear sign, set bit 4
{at}{at}24HourFormatOrAM:

===

with:

===

; If RTC in AM/PM mode, CMOS holds 081h .. 08Ch for PM. The "bcd-bin"
; conversion will have translated this to 051h...05Ch, that is, with
; bit 4 allready set, so in all cases we can simply mask off the upper
; three bits.

        and     al, 01Fh                    ; zero out upper three bits

===

Rene

---
* Origin: rene.herman{at}tip.nl (2:282/1.11)
SEEN-BY: 20/10 200/0 201/0 100 200 209 300 400 505 600 203/600 204/450 205/0
SEEN-BY: 206/0 270/101 490/21 633/267 270
@PATH: 282/1 280/801 270/101 201/505 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.